cookbooks/apache2: 1.2.1, depends: { app 0.7.0 }
cookbooks/app: 0.8.0
cookbooks/french_fries: 1.1.1
^ The above is not an acceptable thing
| func dot_git_dir(dir string) string { | |
| git_dir := path.Join(dir, ".git") | |
| _, dir_error := os.Stat(git_dir) | |
| if dir_error != nil { | |
| if git_dir == "/.git" { | |
| log.Fatal("Cannot find a .git directory") | |
| } | |
| return dot_git_dir(path.Dir(dir)) | |
| } else { | |
| return git_dir |
| fn review(opts: &[&str]) { | |
| let target = match opts { | |
| [ "--for", p ] => p, | |
| _ => "master" | |
| }; | |
| let cwd = os::getcwd(); | |
| let have_dot_git = have_dot_git(cwd.clone()); | |
| let dot_git_dir: &Path = match have_dot_git.as_ref() { | |
| Some(path) => path, |
| fn main() { | |
| let args: Vec<String> = os::args(); | |
| let mut washed_args = Vec::new(); | |
| for arg in args.iter() { | |
| washed_args.push(arg.as_slice()) | |
| } | |
| match washed_args.as_slice() { | |
| [_, “review”, opts..] => { review(opts) } | |
| _ => { usage() } |
| context 'when using sudo' do | |
| let(:accessor) { :sudo } | |
| it 'sets itself to true' do | |
| let(:value) { true } | |
| should eql(value) | |
| end | |
| end | |
Proves that default attributes work fine in Chef Solo:
chef-solo -c solo.rb -j test.json
/t/w/solo-def ❯❯❯ chef-solo -c solo.rb -j test.json
Starting Chef Client, version 11.4.4
Compiling Cookbooks...
[2013-08-02T10:30:01-07:00] WARN: I see that solo works... fine
Converging 1 resources
| require 'chefspec' | |
| require 'berkshelf' | |
| require 'tmpdir' | |
| require 'fileutils' | |
| TOPDIR = File.expand_path(File.join(File.dirname(__FILE__), "..")) | |
| $: << File.expand_path(File.dirname(__FILE__)) | |
| Berkshelf.ui.mute! | |
| berks = Berkshelf::Berksfile.from_file(File.join(TOPDIR, "Berksfile")) |
| # A sample Guardfile | |
| # More info at https://github.com/guard/guard#readme | |
| require 'guard/guard' | |
| require 'mixlib/shellout' | |
| module ::Guard | |
| class Kitchen < ::Guard::Guard | |
| def start | |
| ::Guard::UI.info("Guard::Kitchen is starting") |
| require 'chefspec' | |
| require 'berkshelf' | |
| require 'tmpdir' | |
| require 'fileutils' | |
| TOPDIR = File.expand_path(File.join(File.dirname(__FILE__), "..")) | |
| $: << File.expand_path(File.dirname(__FILE__)) | |
| berks = Berkshelf::Berksfile.from_file(File.join(TOPDIR, "Berksfile")) | |
| tmpdirname = Dir.mktmpdir("chefspec-berks") |
| config defaultToCurrentScreen true | |
| config windowHintsShowIcons true | |
| config windowHintsIgnoreHiddenWindows false | |
| config windowHintsSpread true | |
| # Monitor Aliases | |
| alias mon-laptop 0 | |
| alias mon-dell 1 | |
| # Command e shows window hints |