Sha256: d26f3fa8e8c13d1a301da504ae2638be4fb61213591322d2a725701dafa9b050

Contents?: true

Size: 1 KB

Versions: 16

Compression:

Stored size: 1 KB

Contents

# frozen_string_literal: true

require "thor"

module Groundskeeper
  # Bootstrap this as a Thor application.
  class Application < Thor
    attr_reader :commands

    class_option :simulate, desc: "Simulate mina"
    class_option :verbose, desc: "Run groundskeeper verbosely", aliases: :v,
                           type: :boolean

    def initialize(args = [], local_options = {}, config = {})
      @commands = Commands.build(self)
      super
    end

    desc "info", "Display revision info"
    def info
      commands.info options
    end

    desc "release", "create a new release"
    def release
      commands.info options
      commands.release options
    end

    # :nocov:
    desc "predeploy", "create configuration files for the project"
    def predeploy
      commands.info options
      commands.predeploy options
    end
    # :nocov:

    # :nocov:
    desc "deploy", "deploy the latest release"
    def deploy
      commands.info options
      commands.deploy options
    end
    # :nocov:
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
groundskeeper-bitcore-0.14.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.13.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.12.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.11.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.10.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.9.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.8.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.7.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.6.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.5.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.4.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.3.7 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.3.6 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.3.5 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.3.4 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.3.3 lib/groundskeeper/application.rb