Title / Description
Code reqeire 'fog' service = Fog::Storage.new({: provider => 'OpenStack', : openstack_username => 'admin', : openstack_api_key => 'nomoresecrete', : openstack_auth_url => 'http://192.168.0.`:5000/v2.0/tokens' }) slide_dir = service.directories.create: key => 'slide4096' file = slide_dir.files.create: key => 'swiftconsolidator.rb', : body => (File.open "swiftconsolidator.rb") puts file.public_url
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code