generator_files/cookbooks/workstation/recipes/editor.rb in wombat-cli-0.4.3 vs generator_files/cookbooks/workstation/recipes/editor.rb in wombat-cli-0.5.0

- old
+ new

@@ -1,7 +1,6 @@ -home = Dir.home - +run_home = Dir.home directory "#{home}/.atom" cookbook_file "#{home}/.atom/config.cson" do source 'atom.config.cson' action :create @@ -11,9 +10,9 @@ source 'atom.apm.list' action :create end execute 'install Atom packages' do - command "#{home}/AppData/Local/atom/bin/apm install --packages-file #{home}/.atom/apm-bootstrap.list" + command "#{run_home}/AppData/Local/atom/bin/apm install --packages-file #{home}/.atom/apm-bootstrap.list" action :run not_if { File.exist?("#{home}/.atom/packages/language-chef/README.md") } end