Module: ClusterFsck::Commands::ClusterFsckEnvArgumentParser

Included in:
Create, Edit, Override
Defined in:
lib/clusterfsck/commands/cluster_fsck_env_argument_parser.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
# File 'lib/clusterfsck/commands/cluster_fsck_env_argument_parser.rb', line 5

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

Instance Method Details

#set_cluster_fsck_env_and_key_from_args(args) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/clusterfsck/commands/cluster_fsck_env_argument_parser.rb', line 10

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