Module: Pushfile::Rackspace
- Included in:
- Upload
- Defined in:
- lib/providers/rackspace.rb
Instance Method Summary collapse
-
#rackspace ⇒ Object
Set up rackspace.
-
#rackspace_cdn ⇒ Object
Rackspace cdn.
-
#rackspace_container ⇒ Object
Rackspace container.
Instance Method Details
#rackspace ⇒ Object
Set up rackspace
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/providers/rackspace.rb', line 5 def rackspace Fog::Storage.new( :provider => 'Rackspace', :rackspace_username => Pushfile.settings[:rackspace_username], :rackspace_api_key => Pushfile.settings[:rackspace_key], # Defaults to :dfw :rackspace_region => :ord, # :connection_options => {} :rackspace_servicenet => @snet ) end |
#rackspace_cdn ⇒ Object
Rackspace cdn
18 19 20 |
# File 'lib/providers/rackspace.rb', line 18 def rackspace_cdn Pushfile.settings[:rackspace_cdn] end |
#rackspace_container ⇒ Object
Rackspace container
23 24 25 |
# File 'lib/providers/rackspace.rb', line 23 def rackspace_container Pushfile.settings[:rackspace_container] end |