Class: Cider::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/cider.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.runObject



7
8
9
# File 'lib/cider.rb', line 7

def self.run
  new.run
end

Instance Method Details

#configObject



17
18
19
# File 'lib/cider.rb', line 17

def config
  @config ||= File.expand_path(File.join(File.dirname(__FILE__), "cider", "solo.rb"))
end

#runObject



11
12
13
14
15
# File 'lib/cider.rb', line 11

def run
  system("rm -rf ~/.cider")
  system("chef-solo -c #{config}")
  exit($?.to_i)
end