class RedmineInstaller::Task
Attributes
options[R]
Public Class Methods
new(**options)
click to toggle source
# File lib/redmine-installer/task.rb, line 7 def initialize(**options) @options = OpenStruct.new(options) logger.info "#{class_name} initialized with #{options}" logger.info "RUBY_VERSION: #{RUBY_VERSION}" logger.info "VERSION: #{RedmineInstaller::VERSION}" logger.info "USER: #{env_user}" end
Public Instance Methods
down()
click to toggle source
# File lib/redmine-installer/task.rb, line 33 def down end
run()
click to toggle source
# File lib/redmine-installer/task.rb, line 16 def run up rescue => e @error = e logger.error(e.message) logger.error(*e.backtrace) puts pastel.red(e.message) down end
up()
click to toggle source
# File lib/redmine-installer/task.rb, line 29 def up raise NotImplementedError end