Class: Epi::Cli::Commands::Config

Inherits:
Epi::Cli::Command show all
Defined in:
lib/epi/cli/commands/config.rb

Instance Attribute Summary

Attributes inherited from Epi::Cli::Command

#args

Instance Method Summary collapse

Methods inherited from Epi::Cli::Command

#initialize, #need_root!, run

Constructor Details

This class inherits a constructor from Epi::Cli::Command

Instance Method Details

#runObject



6
7
8
9
10
11
12
# File 'lib/epi/cli/commands/config.rb', line 6

def run
  case args.shift
    when 'add' then add
    when 'remove' then remove
    else raise Exceptions::Fatal, 'Unknown config command, use [ add | remove ]'
  end
end