Sha256: 54d5f5bbce78ab144a330d3d7e6c23bc522196fa8bf348e944c81bc3e8b10969

Contents?: true

Size: 452 Bytes

Versions: 8

Compression:

Stored size: 452 Bytes

Contents

module DPL
  class Provider
    class Appfog < Provider
      requires 'af', :load => 'vmc'

      def check_auth
        context.shell "af login --email=#{option(:email)} --password=#{option(:password)}"
      end

      def needs_key?
        false
      end

      def push_app
        context.shell "af update #{options[:app] || File.basename(Dir.getwd)}"
        context.shell "af logout"
      end

      def cleanup
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dpl-1.5.2.travis.194.2 lib/dpl/provider/appfog.rb
dpl-1.5.2.travis.193.2 lib/dpl/provider/appfog.rb
dpl-1.5.2.travis.190.2 lib/dpl/provider/appfog.rb
dpl-1.5.2.travis.188.2 lib/dpl/provider/appfog.rb
dpl-1.5.2.travis.187.2 lib/dpl/provider/appfog.rb
dpl-1.5.2.travis.184.2 lib/dpl/provider/appfog.rb
dpl-1.5.2.travis.183.2 lib/dpl/provider/appfog.rb
dpl-1.5.1 lib/dpl/provider/appfog.rb