knife-digital_ocean 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8134b23992ea183fc358322e9119f53871a3194a
4
- data.tar.gz: a8acb23a08257dfc719947ca9811c99266948af4
3
+ metadata.gz: 4d6837eb0ed9318f5dc3d7df661b9d7fa74bdb86
4
+ data.tar.gz: 6c959c38bbcb222e5792ac208d8fa034e10c0cbb
5
5
  SHA512:
6
- metadata.gz: 9fa59b68050f3171f06430d0dc19957def328b2da913f98ba9d1713419c9253832cfd880154dd5302917552915652d19bcd17d67417edba16ddead4e4edc1064
7
- data.tar.gz: 8577c105e27a3de7a53a32cd940ef6a152cf6d120c1139d29918ab555bcd2e770631e6bf60be12f072be385511815426a3ec5424c8c34a5df1ce186e8834da1b
6
+ metadata.gz: b43a58d4b73a34bd132db0f7167b7fe68bad93f38e1b63d4c8d04f18778a307056ca75e7ba6b1da8b3555e90358aeb1f26a49f99438e5d44ff20391e15524a58
7
+ data.tar.gz: e4bfe933f58ca1670c91f835d1f3e18f3ea1126c307f73168f7b5e92397d8ca7c0bc99eb3d76559d228121ccc61e3a9521547e2c346c740984d81b46cdcf901d
data/.travis.yml CHANGED
@@ -5,4 +5,7 @@ rvm:
5
5
  - 1.9.3
6
6
  - 2.0.0
7
7
  - ruby-head
8
+ matrix:
9
+ allow_failures:
10
+ - rvm: ruby-head
8
11
  script: bundle exec rake test
data/CHANGELOG.md CHANGED
@@ -1,19 +1,27 @@
1
- ## 0.1.2 / unreleased
2
- * [Full Changelog](https://github.com/rmoriz/knife-digital_ocean/compare/v0.1.1...master)
3
- *
1
+ ## unreleased
2
+
3
+ * [Full Changelog](https://github.com/rmoriz/knife-digital_ocean/compare/v0.2.0...master)
4
+
5
+
6
+ ## 0.2.0 / 2013-09-07
7
+
8
+ * [Full Changelog](https://github.com/rmoriz/knife-digital_ocean/compare/v0.1.1...v0.2.0)
9
+ * require ```digital_ocean``` gem version 1.2.0 or later_
10
+ * ensure status of image details is OK before outputting image name (thanks @salemine)
11
+ * add option to pass environment (thanks @tedkulp)
4
12
 
5
13
 
6
14
  ## 0.1.1 / 2013-03-26
7
15
 
8
16
  * [Full Changelog](https://github.com/rmoriz/knife-digital_ocean/compare/v0.1.0...v0.1.1)
9
- * Merge to Knife bootstrap config instead of overwriting it (by tmatilai)
17
+ * merge to knife bootstrap config instead of overwriting it (thanks @tmatilai)
10
18
  * bump dependency to ```digital_ocean``` gem to circument issue https://github.com/rmoriz/knife-digital_ocean/issues/10
11
19
 
12
20
 
13
21
  ## 0.1.0 / 2013-03-01
14
22
 
15
23
  * [Full Changelog](https://github.com/rmoriz/knife-digital_ocean/compare/v0.0.5...v0.1.0)
16
- * support for integrated ```knife-solo``` bootstrapping using the ```--solo``` option (by tmatilai)
24
+ * support for integrated ```knife-solo``` bootstrapping using the ```--solo``` option (thanks @tmatilai)
17
25
  * added basic rspec tests for various bootstrapping options
18
26
  * remove JRuby from CI as chef itself does currently not work with JRuby
19
27
  except when c-extensions are enabled (off by default)
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Knife::DigitalOcean
2
2
  ## A knife plugin to deal with the [DigitalOcean.com](https://www.digitalocean.com) Cloud services.
3
3
 
4
+ [![Gem Version](https://badge.fury.io/rb/knife-digital_ocean.png)](http://badge.fury.io/rb/knife-digital_ocean)
4
5
  [![Build Status](https://travis-ci.org/rmoriz/knife-digital_ocean.png)](https://travis-ci.org/rmoriz/knife-digital_ocean)
5
6
  <a href="https://gemnasium.com/rmoriz/knife-digital_ocean"><img src="https://gemnasium.com/rmoriz/knife-digital_ocean.png"/></a>
6
7
  <a href="https://codeclimate.com/github/rmoriz/knife-digital_ocean"><img src="https://codeclimate.com/github/rmoriz/knife-digital_ocean.png"/></a>
@@ -265,8 +266,22 @@ For more information and a complete list see [the contributor page on GitHub](ht
265
266
  Apache 2.0 (like Chef itself), see LICENSE.txt file.
266
267
 
267
268
 
269
+ ## Mobile Application
270
+
271
+ Ever wanted to control your DigitalOcean Droplets with your iPhone, iPad or iPod Touch?
272
+
273
+ [Get my CloudOcean App!](http://cloudoceanapp.com/)
274
+
275
+ [![CloudOcean - DigitalOcean iOS app](http://i.imgur.com/JLQua2w.png)](http://cloudoceanapp.com/)
276
+
277
+
268
278
  ## Copyright
269
279
 
270
280
  Copyright © 2013 [Roland Moriz](https://roland.io), [Moriz GmbH](https://moriz.de/)
271
281
 
272
282
  [![LinkedIn](http://www.linkedin.com/img/webpromo/btn_viewmy_160x25.png)](http://www.linkedin.com/in/rmoriz)
283
+ [![Twitter](http://i.imgur.com/1kYFHlu.png)](https://twitter.com/rmoriz)
284
+
285
+
286
+
287
+
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
14
14
  gem.license = 'Apache 2.0'
15
15
 
16
16
  gem.add_dependency 'chef', '>= 10.18'
17
- gem.add_dependency 'digital_ocean', '~> 1.0.1'
17
+ gem.add_dependency 'digital_ocean', '~> 1.2.0'
18
18
  gem.add_dependency 'highline'
19
19
 
20
20
  gem.add_development_dependency 'rspec', '~> 2.13'
@@ -115,6 +115,13 @@ class Chef
115
115
  :description => "The version of Chef to install",
116
116
  :proc => Proc.new { |v| Chef::Config[:knife][:bootstrap_version] = v }
117
117
 
118
+ option :environment,
119
+ :short => "-E ENVIRONMENT",
120
+ :long => "--environment ENVIRONMENT",
121
+ :description => "The name of the chef environment to use",
122
+ :proc => Proc.new { |e| Chef::Config[:knife][:environment] = e },
123
+ :default => '_default'
124
+
118
125
  def run
119
126
  $stdout.sync = true
120
127
 
@@ -233,6 +240,7 @@ class Chef
233
240
  bootstrap.config[:distro] = locate_config_value(:distro)
234
241
  bootstrap.config[:use_sudo] = true unless config[:ssh_user] == 'root'
235
242
  bootstrap.config[:template_file] = locate_config_value(:template_file)
243
+ bootstrap.config[:environment] = locate_config_value(:environment)
236
244
  bootstrap
237
245
  end
238
246
 
@@ -50,7 +50,15 @@ class Chef
50
50
  droplet_list << sizes[droplet.size_id]
51
51
  droplet_list << regions[droplet.region_id]
52
52
  droplet_list << droplet.ip_address.to_s
53
- droplet_list << droplet.image_id.to_s + ' (' + client.images.show(droplet.image_id).image.name + ')'
53
+
54
+ image_details = client.images.show(droplet.image_id)
55
+ if image_details.status != 'OK'
56
+ image_os_info = 'N/A'
57
+ else
58
+ image_os_info = image_details.image.name
59
+ end
60
+
61
+ droplet_list << droplet.image_id.to_s + ' (' + image_os_info + ')'
54
62
  droplet_list << droplet.status.to_s
55
63
  end
56
64
 
@@ -1,5 +1,5 @@
1
1
  module Knife
2
2
  module DigitalOcean
3
- VERSION = '0.1.1'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-digital_ocean
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roland Moriz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-26 00:00:00.000000000 Z
11
+ date: 2013-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.1
33
+ version: 1.2.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: 1.0.1
40
+ version: 1.2.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: highline
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  version: '0'
192
192
  requirements: []
193
193
  rubyforge_project:
194
- rubygems_version: 2.0.0
194
+ rubygems_version: 2.0.2
195
195
  signing_key:
196
196
  specification_version: 4
197
197
  summary: A plugin for chef's knife to manage instances of DigitalOcean servers