Sha256: cf7e42d60d85f2fa8b9f5d39748c54fbf365f4dddad37c85ff79ce6bf61202db

Contents?: true

Size: 782 Bytes

Versions: 1

Compression:

Stored size: 782 Bytes

Contents

require 'paint'
#
# Text and printing utility methods
#
module Rise
  module Text

    TASKS_HELP =
    %Q{    init                             Reinitialize your password hash. (You will lose you old hash FOREVER)
    update                           Updates the current rise-cli installation (aliased by -u)

Examples:
    #{Paint['$ rise init -v', '#2ecc71']}                    Reinitializes your password with verbose output
    #{Paint['$ rise -d ../my-project -o', '#2ecc71']}        Will upload all files in `../my-project` and open it in a browser
    }

    #
    # Prints +msg+ if the +RISE_VERBOSE+ environment variable is true (set with --verbose)
    #
    def self.vputs(msg='')
      puts msg if ENV['RISE_VERBOSE'] == 'yes'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rise-cli-0.2.5 lib/core/text.rb