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