This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gem_package "gem" do | |
| action :install | |
| done | |
| r = gempackage "gem" do | |
| action :nothing | |
| done | |
| r.runaction(:install) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| include_recipe "apt" | |
| package_list = ["ruby1.9.1-dev","make", " libxml2-dev" ] | |
| package_list.each do |pkg| | |
| r = package pkg do | |
| action :install | |
| ## action :nothing | |
| end | |
| ## r.runaction(:install) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| r = recipe "apt::default" do | |
| action :nothing | |
| done | |
| r.run_action(:execute) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| g = chef_gem "somegem" do | |
| action :nothing | |
| end | |
| g.run_action(:install) | |
| require 'somegem' | |
| # Works | |
| #### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Environment: <%= @environment %> | |
| <% if @environment == "PROD" %> | |
| noThen {} | |
| <% end %> | |
| <% if @environment == "PROD" then %> | |
| withThen {} | |
| <% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| get_file = ruby_block "get_file" do | |
| block do | |
| conn = Some::Remote.new("param") | |
| remoteFile = conn.get("/path/to/file") | |
| localFile = File.open("/tmp/test_secret_key",'w') | |
| localFile.write(remoteFile.contents) | |
| end | |
| not_if { ::File.exists?("/tmp/test_secret_key") } | |
| action :nothing | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [2013-11-13T12:17:31+00:00] INFO: Setting the run_list to ["recipe[java]", "recipe[foo::bar]", "recipe[some::thing]", "recipe[yack::foo]"] from JSON | |
| [2013-11-13T12:17:31+00:00] INFO: Run List is [recipe[java], recipe[foo::bar], recipe[some::thing], recipe[yack::foo]] | |
| [2013-11-13T12:17:31+00:00] INFO: Run List expands to [java, foo::bar, some::thing, yack::foo] | |
| Recipe: yack::foo | |
| ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| libraryDependencies ++= { | |
| if(!new java.io.File("project-module/lib/mylib-1.0.0.jar").exists) | |
| Seq("com.org.mylib" % "mylib" % "1.0.0") | |
| else | |
| Seq() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var fs = require('fs') | |
| fs.exists("/path/to/some/file", function(exists) { | |
| var foo = "bar" | |
| if (exists) | |
| foo = "foobar"; | |
| module.exports = foo; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var UpdatePull = function() { | |
| events.EventEmitter.call(this); | |
| } | |
| util.inherits(UpdatePull, events.EventEmitter); | |
| UpdatePull.prototype.pull = function() { | |
| var self = this; | |
| this.rsspull(function(result){ | |
| _.each(result, (function(item){ |
OlderNewer