thor-tropo 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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]
|