thor-tropo 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/thor-tropo/uploader.rb +0 -2
- data/lib/thor-tropo.rb +15 -15
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
data/lib/thor-tropo/uploader.rb
CHANGED
data/lib/thor-tropo.rb
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
module ThorTropo
|
2
2
|
|
3
3
|
|
4
|
-
$:.unshift File.expand_path('../thor-tropo', __FILE__)
|
5
|
-
|
6
|
-
require 'thor'
|
7
|
-
require 'thor/actions'
|
8
|
-
require 'thor/scmversion'
|
9
|
-
require 'tmpdir'
|
10
|
-
require 'archive/tar/minitar'
|
11
|
-
require 'zlib'
|
12
|
-
require 'berkshelf/thor'
|
13
|
-
require 'berkshelf/chef'
|
14
|
-
require 'uploader'
|
15
|
-
require 'configuration'
|
4
|
+
$:.unshift File.expand_path('../thor-tropo', __FILE__)
|
5
|
+
|
6
|
+
require 'thor'
|
7
|
+
require 'thor/actions'
|
8
|
+
require 'thor/scmversion'
|
9
|
+
require 'tmpdir'
|
10
|
+
require 'archive/tar/minitar'
|
11
|
+
require 'zlib'
|
12
|
+
require 'berkshelf/thor'
|
13
|
+
require 'berkshelf/chef'
|
14
|
+
require 'uploader'
|
15
|
+
require 'configuration'
|
16
16
|
|
17
17
|
class Tasks < Thor
|
18
18
|
include Thor::Actions
|
@@ -93,9 +93,9 @@ require 'configuration'
|
|
93
93
|
|
94
94
|
def upload_cookbook(local_file,path,opts={})
|
95
95
|
uploader = ThorTropo::Uploader.new({
|
96
|
-
|
97
|
-
|
98
|
-
|
96
|
+
:access_key => $config.aws_key,
|
97
|
+
:secret_key => $config.aws_secret,
|
98
|
+
:bucket => $config.bucket_name
|
99
99
|
})
|
100
100
|
|
101
101
|
uploader.upload :local_file => local_file, :path => path, :force => options[:force], :noop=>options[:noop]
|