Class: Rudy::CLI::AWS::S3::Store
Instance Attribute Summary
Attributes inherited from CommandBase
#config
Instance Method Summary
collapse
Methods included from Huxtable
config, #config_dirname, create_domain, #current_group_name, #current_machine_address, #current_machine_bucket, #current_machine_count, #current_machine_group, #current_machine_hostname, #current_machine_image, #current_machine_name, #current_machine_os, #current_machine_size, #current_machine_user, #current_user_keypairname, #current_user_keypairpath, #defined_keypairpath, domain, domain_exists?, global, keypair_path_to_name, #known_machine_group?, ld, #ld, #le, le, li, #li, logger, reset_config, reset_global, #root_keypairname, #root_keypairpath, update_config, update_global, update_logger, #user_keypairname, #user_keypairpath
Instance Method Details
#store ⇒ Object
13
14
15
16
17
|
# File 'lib/rudy/cli/aws/s3/store.rb', line 13
def store
s3 = Rudy::AWS::S3.new(@@global.accesskey, @@global.secretkey, @@global.region)
puts "Success: %s" % s3.store(@argv.path, @option.bucket)
end
|
#store_valid? ⇒ Boolean
8
9
10
11
12
|
# File 'lib/rudy/cli/aws/s3/store.rb', line 8
def store_valid?
raise "No path specified" unless @argv.path
raise "No bucket specified" unless @option.bucket
true
end
|