Module: Etna::CommandOrExecutor::Dsl

Defined in:
lib/etna/command.rb

Instance Method Summary collapse

Instance Method Details

#boolean_flagsObject



35
36
37
# File 'lib/etna/command.rb', line 35

def boolean_flags
  @boolean_flags ||= []
end

#multi_flagsObject



43
44
45
# File 'lib/etna/command.rb', line 43

def multi_flags
  @multi_flags ||= []
end

#string_flagsObject



39
40
41
# File 'lib/etna/command.rb', line 39

def string_flags
  @string_flags ||= []
end

#usage(desc) ⇒ Object



29
30
31
32
33
# File 'lib/etna/command.rb', line 29

def usage(desc)
  define_method :usage do
    "  #{"%-45s" % command_name}#{desc}"
  end
end