Skip to content

Commit

Permalink
Merge 5a023b4 into d3b5025
Browse files Browse the repository at this point in the history
  • Loading branch information
plribeiro3000 committed Apr 1, 2018
2 parents d3b5025 + 5a023b4 commit e37bce9
Show file tree
Hide file tree
Showing 60 changed files with 26 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -121,7 +121,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/fog-digitalocean. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
Bug reports and pull requests are welcome on GitHub at https://github.com/fog/fog-digitalocean. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.


## License
Expand Down
@@ -1,11 +1,11 @@
require 'fog/digitalocean/core'

module Fog
module Compute
class DigitalOcean < Fog::Service
autoload :PagingCollection, File.expand_path('../digitalocean/models/paging_collection', __FILE__)

requires :digitalocean_token

model_path 'fog/digitalocean/models/compute'
model_path 'fog/compute/digitalocean/models'
model :server
collection :servers
model :image
Expand All @@ -19,7 +19,7 @@ class DigitalOcean < Fog::Service
model :volume
collection :volumes

request_path 'fog/digitalocean/requests/compute'
request_path 'fog/compute/digitalocean/requests'
request :list_volumes
request :create_volume
request :attach_volume
Expand Down
@@ -1,4 +1,4 @@
require 'fog/digitalocean/models/paging_collection'
require 'fog/compute/digitalocean/models/paging_collection'

module Fog
module Compute
Expand Down
@@ -1,6 +1,6 @@
require 'fog/core/collection'
require 'fog/digitalocean/models/compute/server'
require 'fog/digitalocean/models/paging_collection'
require 'fog/compute/digitalocean/models/server'
require 'fog/compute/digitalocean/models/paging_collection'

module Fog
module Compute
Expand Down
@@ -1,4 +1,4 @@
require 'fog/digitalocean/models/paging_collection'
require 'fog/compute/digitalocean/models/paging_collection'

module Fog
module Compute
Expand Down
@@ -1,4 +1,4 @@
require 'fog/digitalocean/models/paging_collection'
require 'fog/compute/digitalocean/models/paging_collection'

module Fog
module Compute
Expand Down
File renamed without changes.
16 changes: 15 additions & 1 deletion lib/fog/digitalocean.rb
@@ -1 +1,15 @@
require 'fog/digitalocean/compute'
require 'fog/core'
require 'fog/json'

module Fog
module Compute
autoload :DigitalOcean, File.expand_path('../compute/digitalocean', __FILE__)
end

module DigitalOcean
autoload :Service, File.expand_path('../digitalocean/service')

extend Fog::Provider
service(:compute, 'Compute')
end
end
2 changes: 1 addition & 1 deletion lib/fog/digitalocean/CHANGELOG.md
Expand Up @@ -2,5 +2,5 @@

* Initial release

Getting started example: https://github.com/fog/fog/blob/master/lib/fog/digitalocean/examples/getting_started.md
Getting started example: https://github.com/fog/fog-digitalocean/blob/master/lib/fog/compute/examples/getting_started.md

9 changes: 0 additions & 9 deletions lib/fog/digitalocean/core.rb

This file was deleted.

0 comments on commit e37bce9

Please sign in to comment.