Class: Butcher::Stab::CLI
- Inherits:
-
Object
- Object
- Butcher::Stab::CLI
- Defined in:
- lib/butcher/stab/cli.rb
Instance Attribute Summary collapse
-
#node_matcher ⇒ Object
Returns the value of attribute node_matcher.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
Instance Attribute Details
#node_matcher ⇒ Object
Returns the value of attribute node_matcher.
2 3 4 |
# File 'lib/butcher/stab/cli.rb', line 2 def node_matcher @node_matcher end |
#options ⇒ Object
Returns the value of attribute options.
3 4 5 |
# File 'lib/butcher/stab/cli.rb', line 3 def @options end |
Instance Method Details
#run(arguments, options = {}) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/butcher/stab/cli.rb', line 5 def run(arguments, = {}) self. = self.node_matcher = Array(arguments).first return "" if node_matcher.nil? ssh_to(matching_node) end |