Sha256: 8d21159af81b4215df1b5d26f9f0de5d6f363cdba204072b591ab12dd1bfb4ae

Contents?: true

Size: 487 Bytes

Versions: 3

Compression:

Stored size: 487 Bytes

Contents

module Travis
  class Deploy
    module Helper
      protected

        def run(cmd, options = {})
          cmd = cmd.strip
          puts "$ #{options[:echo] || cmd}" unless options[:echo].is_a?(FalseClass)
          exit unless system(cmd)
        end

        def say(message)
          shell.say(message, :green)
        end

        def error(message)
          message = shell.set_color(message, :red)
          shell.error(message)
          exit 1
        end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
travis-deploy-0.2.1 lib/travis/deploy/helper.rb
travis-deploy-0.2.0 lib/travis/deploy/helper.rb
travis-deploy-0.1.0 lib/travis/deploy/helper.rb