Sha256: 32e24923122ff2dd059605f0b2848035bfb848bd95f534de32d842b049645644

Contents?: true

Size: 1.06 KB

Versions: 14

Compression:

Stored size: 1.06 KB

Contents

# frozen_string_literal: true

require "thor"

module Groundskeeper
  # Bootstrap this as a Thor application.
  class Application < Thor
    include Thor::Actions
    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"
    option :nginx, type: :boolean
    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

14 entries across 14 versions & 1 rubygems

Version Path
groundskeeper-bitcore-0.35.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.34.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.33.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.32.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.31.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.29.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.28.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.27.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.26.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.24.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.23.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.22.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.21.0 lib/groundskeeper/application.rb
groundskeeper-bitcore-0.20.1 lib/groundskeeper/application.rb