berks_to_rightscale 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -10,7 +10,7 @@ This is primarily a commandline tool for injesting a Berksfile and uploading the
10
10
 
11
11
  This requires a ~/.fog configuration file with the proper credentials for any storage provider(s) you wish to use. To get an example of the ~/.fog config file do the following after installing berks_to_rightscale (shown above)
12
12
 
13
- fog [1.9.3-p194]
13
+ fog
14
14
  Missing Credentials
15
15
 
16
16
  To run as 'default', add the following to your resource config file: /Users/ryangeyer/.fog
@@ -20,6 +20,7 @@
20
20
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
21
 
22
22
  require 'berkshelf'
23
+ require 'chef/knife/cookbook_metadata'
23
24
  require 'fog'
24
25
  require 'thor'
25
26
 
@@ -54,6 +54,11 @@ module BerksToRightscale
54
54
  berksfile = ::Berkshelf::Berksfile.from_file(final_opts[:berksfile])
55
55
  berksfile.install(final_opts)
56
56
 
57
+ meta = ::Chef::Knife::CookbookMetadata.new
58
+ meta.config[:all] = true
59
+ meta.config[:cookbook_path] = output_path
60
+ meta.run
61
+
57
62
  puts "Creating a tarball containing the specified cookbooks"
58
63
  `tar -zcvf #{tarball_path} #{output_path} 2>&1`
59
64
 
@@ -65,8 +70,8 @@ module BerksToRightscale
65
70
  puts "Released file can be found at #{fog_file.public_url}"
66
71
 
67
72
  # Cleanup
68
- FileUtils.rm tarball if File.exist? tarball
69
- FileUtils.rm_rf output_path if File.directory? output_path
73
+ #FileUtils.rm tarball if File.exist? tarball
74
+ #FileUtils.rm_rf output_path if File.directory? output_path
70
75
  end
71
76
 
72
77
  desc "list_destinations", "Lists all possible release locations. Basically a list of supported fog storage providers"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: berks_to_rightscale
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-04 00:00:00.000000000 Z
12
+ date: 2013-01-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: berkshelf
@@ -27,6 +27,22 @@ dependencies:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  version: '1.1'
30
+ - !ruby/object:Gem::Dependency
31
+ name: chef
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: 10.16.2
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 10.16.2
30
46
  - !ruby/object:Gem::Dependency
31
47
  name: thor
32
48
  requirement: !ruby/object:Gem::Requirement
@@ -87,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
87
103
  version: '0'
88
104
  segments:
89
105
  - 0
90
- hash: -2913936428031306561
106
+ hash: -1020438108564136549
91
107
  required_rubygems_version: !ruby/object:Gem::Requirement
92
108
  none: false
93
109
  requirements:
@@ -96,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
112
  version: '0'
97
113
  segments:
98
114
  - 0
99
- hash: -2913936428031306561
115
+ hash: -1020438108564136549
100
116
  requirements: []
101
117
  rubyforge_project:
102
118
  rubygems_version: 1.8.24