Sha256: 9763b65f429731901460652adb1c3b6b52a407731a7711acbb1d79b28a20cdb7

Contents?: true

Size: 471 Bytes

Versions: 9

Compression:

Stored size: 471 Bytes

Contents

module DPL
  class Provider
    class Appfog < Provider
      requires 'json_pure', :load => 'json/pure'
      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
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dpl-1.8.18.travis.1553.3 lib/dpl/provider/appfog.rb
dpl-1.8.18.travis.1552.3 lib/dpl/provider/appfog.rb
dpl-1.8.18.travis.1551.3 lib/dpl/provider/appfog.rb
dpl-1.8.18.travis.1544.3 lib/dpl/provider/appfog.rb
dpl-1.8.18.travis.1543.3 lib/dpl/provider/appfog.rb
dpl-1.8.18.travis.1530.3 lib/dpl/provider/appfog.rb
dpl-1.8.18.travis.1529.4 lib/dpl/provider/appfog.rb
dpl-1.8.18.travis.1527.4 lib/dpl/provider/appfog.rb
dpl-1.8.18.travis.1518.4 lib/dpl/provider/appfog.rb