Class: Exctl::Cmd
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#desc ⇒ Object
Returns the value of attribute desc.
-
#finished ⇒ Object
Returns the value of attribute finished.
-
#name ⇒ Object
Returns the value of attribute name.
-
#prerequisites ⇒ Object
Returns the value of attribute prerequisites.
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#run ⇒ Object
Returns the value of attribute run.
-
#synopsis ⇒ Object
Returns the value of attribute synopsis.
Instance Method Summary collapse
- #full_name ⇒ Object
-
#initialize(ns, name, opts) ⇒ Cmd
constructor
A new instance of Cmd.
Constructor Details
#initialize(ns, name, opts) ⇒ Cmd
Returns a new instance of Cmd.
5 6 7 8 9 |
# File 'lib/exctl/commands.rb', line 5 def initialize(ns, name, opts) @ns = ns.dup @name = name @opts = opts end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
3 4 5 |
# File 'lib/exctl/commands.rb', line 3 def args @args end |
#desc ⇒ Object
Returns the value of attribute desc.
3 4 5 |
# File 'lib/exctl/commands.rb', line 3 def desc @desc end |
#finished ⇒ Object
Returns the value of attribute finished.
4 5 6 |
# File 'lib/exctl/commands.rb', line 4 def finished @finished end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/exctl/commands.rb', line 3 def name @name end |
#prerequisites ⇒ Object
Returns the value of attribute prerequisites.
3 4 5 |
# File 'lib/exctl/commands.rb', line 3 def prerequisites @prerequisites end |
#priority ⇒ Object
Returns the value of attribute priority.
3 4 5 |
# File 'lib/exctl/commands.rb', line 3 def priority @priority end |
#run ⇒ Object
Returns the value of attribute run.
4 5 6 |
# File 'lib/exctl/commands.rb', line 4 def run @run end |
#synopsis ⇒ Object
Returns the value of attribute synopsis.
3 4 5 |
# File 'lib/exctl/commands.rb', line 3 def synopsis @synopsis end |
Instance Method Details
#full_name ⇒ Object
11 12 13 |
# File 'lib/exctl/commands.rb', line 11 def full_name @full_name ||= (@ns + [@name]).map(&:to_s).join('.') end |