Sha256: eb308af1d26014e9a8f865a1cd4d689cd92f1871febb34d0895f12db85cab6ab

Contents?: true

Size: 866 Bytes

Versions: 4

Compression:

Stored size: 866 Bytes

Contents

require 'aws_one_click_staging/bucket_sync_service'
require "aws_one_click_staging/aws_warrior"
require "aws_one_click_staging/version"

SOURCE_ROOT = File.expand_path("#{File.dirname(__FILE__)}/..")

module AwsOneClickStaging

  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 "operations completed successfully!"
  end

  def self.check
    warrior = AwsWarrior.new # this makes a config file if needed
    puts "This command *would* test that you have the needed "
    puts "permissions on the buckets and rds instances you named "
    puts "in your config file... but alas, you're reading the "
    puts "outputs of a stubbed method..."
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aws_one_click_staging-0.0.7 lib/aws_one_click_staging.rb
aws_one_click_staging-0.0.6 lib/aws_one_click_staging.rb
aws_one_click_staging-0.0.5 lib/aws_one_click_staging.rb
aws_one_click_staging-0.0.4 lib/aws_one_click_staging.rb