module Shipit::Cli
Constants
- VERSION
Public Class Methods
ascii()
click to toggle source
# File lib/shipit/cli.rb, line 28 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
config()
click to toggle source
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
# File lib/shipit/cli.rb, line 20 def config @config ||= Shipit::Cli::Configuration.new end
configure(attributes = {})
click to toggle source
# File lib/shipit/cli.rb, line 24 def configure(attributes = {}) config.apply attributes end