foreman_digitalocean 0.0.2 → 0.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08632ae888aa53118c45074f61225545bd93250e
4
- data.tar.gz: 3d3cbc2fe075690b427304c5703e2c06c28ed4c7
3
+ metadata.gz: 9c6b46a2acbef2577139e5b143a3338744c93812
4
+ data.tar.gz: 5082619fa7124d599f454a125f4977926e34b922
5
5
  SHA512:
6
- metadata.gz: c17b84cd4b08f0d2c62ab568d1b9df980fcc977e46b08876ac49988a1e616a4746b5cf2a15cca5615ada4e29ba55e4ee20ac39b8f83bfc67fa0fe4f1d7c57f87
7
- data.tar.gz: bd6b46daee866af3f8ac3e0a9959ed3f991e8acd2ff6ac99394127c89d0e65a6d4cecb9e80f9d3e3d07267eda02d499cb9a8aeedc0f6548cb6d5dbd3cdf6e278
6
+ metadata.gz: 5150238855d5ee6091b40bfa0d49eb9bf7b0ec21c2845bf447ca54b4f645639b6b707889528b305ee03ba9004cf857d30eee779d3448144e0a208a619b16a630
7
+ data.tar.gz: 3493421989e84cddfa600b2f808158e457160342d7b9cab08441c2e993a6fa18756f0775eb8444c72a7bb7dcb0afaf3b124f03670c815240762f3af5c8d83cba
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Foreman DigitalOcean Plugin
2
2
 
3
+ [![Code Climate](https://codeclimate.com/github/theforeman/foreman-digitalocean/badges/gpa.svg)](https://codeclimate.com/github/theforeman/foreman-digitalocean)
4
+ [![Gem Version](https://badge.fury.io/rb/foreman_digitalocean.svg)](http://badge.fury.io/rb/foreman_digitalocean)
5
+ [![Dependency Status](https://gemnasium.com/theforeman/foreman-digitalocean.svg)](https://gemnasium.com/theforeman/foreman-digitalocean)
6
+
3
7
  ```foreman-digitalocean``` enables provisioning and managing of [DigitalOcean](http://digitalocean.com) droplets in [Foreman](http://github.com/theforeman/foreman), all of that under the GPL v3+ license.
4
8
 
5
9
  * Website: [TheForeman.org](http://theforeman.org)
@@ -17,6 +21,18 @@ Please see the Foreman manual for appropriate instructions:
17
21
 
18
22
  * [Foreman: How to Install a Plugin](http://theforeman.org/manuals/latest/index.html#6.1InstallaPlugin)
19
23
 
24
+ ### Red Hat, CentOS, Fedora, Scientific Linux (rpm)
25
+
26
+ Set up the repo as explained in the link above, then run
27
+
28
+ # yum install ruby193-rubygem-foreman_digitalocean
29
+
30
+ ### Debian, Ubuntu (deb)
31
+
32
+ Set up the repo as explained in the link above, then run
33
+
34
+ # apt-get install ruby-foreman-digitalocean
35
+
20
36
  ### Bundle (gem)
21
37
 
22
38
  Add the following to bundler.d/Gemfile.local.rb in your Foreman installation directory (/usr/share/foreman by default)
@@ -29,10 +45,6 @@ Then run `bundle install` from the same directory
29
45
 
30
46
  To verify that the installation was successful, go to Foreman, top bar **Administer > About** and check 'foreman_digitalocean' shows up in the **System Status** menu under the Plugins tab.
31
47
 
32
- ### Packages
33
-
34
- rpms & debs will be in the official Foreman plugins repository soon.
35
-
36
48
  ## Configuration
37
49
 
38
50
  Go to **Infrastructure > Compute Resources** and click on "New Compute Resource".
@@ -3,6 +3,10 @@ module FogExtensions
3
3
  module Server
4
4
  extend ActiveSupport::Concern
5
5
 
6
+ def identity_to_s
7
+ identity.to_s
8
+ end
9
+
6
10
  def vm_description
7
11
  flavor.try(:name)
8
12
  end
@@ -14,7 +14,7 @@ module ForemanDigitalocean
14
14
  end
15
15
 
16
16
  def provided_attributes
17
- super.merge({ :ip => :public_ip_address })
17
+ super.merge({ :uuid => :identity_to_s, :ip => :public_ip_address })
18
18
  end
19
19
 
20
20
  def self.model_name
@@ -1,3 +1,3 @@
1
1
  module ForemanDigitalocean
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_digitalocean
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tommy McNeely, Daniel Lobato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-02 00:00:00.000000000 Z
11
+ date: 2014-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop