Sha256: c5f1c22cdad379d46a0d455d73b8eb6c37ad47c96415c7d669c2f3ea2a121865

Contents?: true

Size: 649 Bytes

Versions: 10

Compression:

Stored size: 649 Bytes

Contents

require 'spec_helper'
require 'fog'
require 'rake'

describe 'cloud_cp' do
  include Rake::DSL

  let(:options) do
    {
      credentials: {
        provider: 'AWS',
        aws_access_key_id: 'whatever',
        aws_secret_access_key: 'asdf'
      },
      bucket: 'my_bucket',
      public: true
    }
  end
  let(:directory) { 'lib' }

  before :each do
    Fog.mock!

    connection = Fog::Storage.new(options[:credentials])
    connection.directories.create(key: options[:bucket],
                                  public: options[:public])
  end

  it 'should copy all directories to the cloud' do
    cloud_cp(directory, options)
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ggake-0.9.0 spec/cloud_cp_spec.rb
ggake-0.8.0 spec/cloud_cp_spec.rb
ggake-0.7.0 spec/cloud_cp_spec.rb
ggake-0.6.0 spec/cloud_cp_spec.rb
ggake-0.5.0 spec/cloud_cp_spec.rb
ggake-0.4.1 spec/cloud_cp_spec.rb
ggake-0.4.0 spec/cloud_cp_spec.rb
ggake-0.3.1 spec/cloud_cp_spec.rb
ggake-0.3.0 spec/cloud_cp_spec.rb
ggake-0.2.0 spec/cloud_cp_spec.rb