Sha256: 452037f0f0acf46ff8d1297ab6ef15a5d008beda4f5dc7af235b5040d082b4eb

Contents?: true

Size: 1.35 KB

Versions: 10

Compression:

Stored size: 1.35 KB

Contents

require "shipit/cli/configuration"
require "shipit/cli/configuration_file"
require "shipit/cli/sanitizer"
require "shipit/cli/git"
require "shipit/cli/server"
require "shipit/cli/version"
require "shipit/cli/work"

module Shipit
  module Cli
    class << self
      # Keep track of the configuration values set after a configuration
      # has been applied
      #
      # @example Return a configuration value
      #   Shipit::Cli.config.foo #=> "bar"
      #
      # @return [Object] the configuration object
      #
      def config
        @config ||= Shipit::Cli::Configuration.new
      end

      def configure(attributes = {})
        config.apply attributes
      end

      def ascii
        label = "*" + @config.motd_list.sample[0..37].upcase.center(38) + "*"

        puts "****************************************"
        puts label
        puts "*                                      *"
        puts "*             |    |    |              *"
        puts "*            )_)  )_)  )_)             *"
        puts "*           )___))___))___)\\           *"
        puts "*          )____)____)_____)\\          *"
        puts "*        _____|____|____|____\\__       *"
        puts "*--------\\                   /---------*"
        puts "*       ^^^^^^^^^^^^^^^^^^^^^^         *"
        puts "****************************************"
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
intello-shipit-cli-1.3.1 lib/shipit/cli.rb
intello-shipit-cli-1.3.0 lib/shipit/cli.rb
intello-shipit-cli-1.2.0 lib/shipit/cli.rb
intello-shipit-cli-1.1.0 lib/shipit/cli.rb
intello-shipit-cli-1.0.0 lib/shipit/cli.rb
intello-shipit-cli-0.6.0.rc6 lib/shipit/cli.rb
intello-shipit-cli-0.6.0.rc4 lib/shipit/cli.rb
intello-shipit-cli-0.6.0.rc3 lib/shipit/cli.rb
intello-shipit-cli-0.6.0.rc2 lib/shipit/cli.rb
intello-shipit-cli-0.6.0.rc1 lib/shipit/cli.rb