module Dokku::Helpers
Public Instance Methods
error(message)
click to toggle source
# File lib/dokku/helpers.rb, line 18 def error(message) puts "dokku Error: #{message}" end
home_directory()
click to toggle source
# File lib/dokku/helpers.rb, line 6 def home_directory running_on_windows? ? ENV['USERPROFILE'].gsub("\\","/") : ENV['HOME'] end
running_on_a_mac?()
click to toggle source
# File lib/dokku/helpers.rb, line 14 def running_on_a_mac? RUBY_PLATFORM =~ /-darwin\d/ end
running_on_windows?()
click to toggle source
# File lib/dokku/helpers.rb, line 10 def running_on_windows? RUBY_PLATFORM =~ /mswin32|mingw32/ end