Module: AwsOneClickStaging
- Defined in:
- lib/aws_one_click_staging.rb,
lib/aws_one_click_staging/version.rb,
lib/aws_one_click_staging/aws_warrior.rb
Defined Under Namespace
Classes: AwsWarrior
Constant Summary collapse
- VERSION =
"0.1.1"
Class Method Summary collapse
Class Method Details
.check ⇒ Object
22 23 24 25 26 27 |
# File 'lib/aws_one_click_staging.rb', line 22 def self.check warrior = AwsWarrior.new # this makes a config file if needed puts "This command *would* test that you have the needed permissions on the " puts "buckets and rds instances you named in your config file... " puts "but alas, you're reading the outputs of a stubbed method..." end |
.just_ec2 ⇒ Object
51 52 53 54 |
# File 'lib/aws_one_click_staging.rb', line 51 def self.just_ec2 warrior = AwsWarrior.new puts "this is a stub because we only did this one time and don't feel need to repeat." end |
.just_rds ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/aws_one_click_staging.rb', line 39 def self.just_rds warrior = AwsWarrior.new return if warrior.nil? puts "cloning database from amazon... this takes a while..." warrior.clone_rds puts warrior.get_fancy_string_of_staging_db_uri puts "\nOperations completed successfully!" end |
.just_s3 ⇒ Object
29 30 31 32 33 34 35 36 37 |
# File 'lib/aws_one_click_staging.rb', line 29 def self.just_s3 warrior = AwsWarrior.new return if warrior.nil? puts "cloning s3 bucket from amazon... this takes forever..." warrior.clone_s3_bucket puts "\nOperations completed successfully!" end |
.stage ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/aws_one_click_staging.rb', line 9 def self.stage warrior = AwsWarrior.new return if warrior.nil? puts "cloning database from amazon... this takes a while..." warrior.clone_rds puts "cloning s3 bucket from amazon... this takes forever..." warrior.clone_s3_bucket puts warrior.get_fancy_string_of_staging_db_uri puts "\nOperations completed successfully!" end |