Class: Cider::Runner
- Inherits:
-
Object
- Object
- Cider::Runner
- Defined in:
- lib/cider.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.run ⇒ Object
7 8 9 |
# File 'lib/cider.rb', line 7 def self.run new.run end |
Instance Method Details
#config ⇒ Object
17 18 19 |
# File 'lib/cider.rb', line 17 def config @config ||= File.(File.join(File.dirname(__FILE__), "cider", "solo.rb")) end |
#run ⇒ Object
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 |