Class: Exctl::Cmd

Inherits:
Object show all
Defined in:
lib/exctl/commands.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argsObject

Returns the value of attribute args.



3
4
5
# File 'lib/exctl/commands.rb', line 3

def args
  @args
end

#descObject

Returns the value of attribute desc.



3
4
5
# File 'lib/exctl/commands.rb', line 3

def desc
  @desc
end

#finishedObject

Returns the value of attribute finished.



4
5
6
# File 'lib/exctl/commands.rb', line 4

def finished
  @finished
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/exctl/commands.rb', line 3

def name
  @name
end

#prerequisitesObject

Returns the value of attribute prerequisites.



3
4
5
# File 'lib/exctl/commands.rb', line 3

def prerequisites
  @prerequisites
end

#priorityObject

Returns the value of attribute priority.



3
4
5
# File 'lib/exctl/commands.rb', line 3

def priority
  @priority
end

#runObject

Returns the value of attribute run.



4
5
6
# File 'lib/exctl/commands.rb', line 4

def run
  @run
end

#synopsisObject

Returns the value of attribute synopsis.



3
4
5
# File 'lib/exctl/commands.rb', line 3

def synopsis
  @synopsis
end

Instance Method Details

#full_nameObject



11
12
13
# File 'lib/exctl/commands.rb', line 11

def full_name
  @full_name ||= (@ns + [@name]).map(&:to_s).join('.')
end