Class: Salt::Matrix::Cli
- Inherits:
-
Thor
- Object
- Thor
- Salt::Matrix::Cli
- Defined in:
- lib/salt/matrix/cli.rb,
lib/salt/matrix/cli/deploy.rb
Defined Under Namespace
Classes: Deploy
Instance Method Summary collapse
Instance Method Details
#deploy ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/salt/matrix/cli.rb', line 39 def deploy if ['debug'] Salt::Master.set_debug end deploy_dir = File. ['dir'] Salt::Matrix.debug "Deployment directory set to #{deploy_dir}" saltfile = Salt::Saltfile.new deploy_dir saltfile.load saltfile.formulas.each do |f| f.sync end end |
#foo ⇒ Object
54 55 56 |
# File 'lib/salt/matrix/cli.rb', line 54 def foo raise RuntimeError, 'This is foo' end |