Module: ClusterFuck::Commands::AmicusEnvArgumentParser

Included in:
Create, Edit, Override
Defined in:
lib/cluster-fuck/commands/amicus_env_argument_parser.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
# File 'lib/cluster-fuck/commands/amicus_env_argument_parser.rb', line 5

def self.included(base)
  base.send(:attr_reader, :key) unless base.respond_to?(:reader_key)
  base.send(:include, ClusterFuck::S3Methods)
end

Instance Method Details

#set_amicus_env_and_key_from_args(args) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/cluster-fuck/commands/amicus_env_argument_parser.rb', line 10

def set_amicus_env_and_key_from_args(args)
  if args.length > 1
    @amicus_env, @key = args
  else
    @key = args.first
  end
end