Sha256: cc7084a99696664eb95fea3379c4c14b6f3033a729b937a5eca1867be75a5512

Contents?: true

Size: 574 Bytes

Versions: 4

Compression:

Stored size: 574 Bytes

Contents

module Hanzo
  module Installers
    module Labs
      def install_labs
        Hanzo.title 'Activating Heroku Labs'

        Hanzo::Heroku.available_labs.each do |name, description|
          if Hanzo.agree("Add #{name}?")
            Hanzo::Installers::Remotes.environments.each_pair do |env, app|
              Hanzo::Installers::Labs.enable(env, name)
            end
          end
        end
      end

      def self.enable(env, lab)
        Hanzo.run "heroku labs:enable #{lab} --remote #{env}"
        Hanzo.print "- Enabled for #{env}"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hanzo-0.4.2 lib/hanzo/modules/installers/labs.rb
hanzo-0.4.1 lib/hanzo/modules/installers/labs.rb
hanzo-0.4 lib/hanzo/modules/installers/labs.rb
hanzo-0.3.1 lib/hanzo/modules/installers/labs.rb