class Molflow::Commands::Install
Class is used to customize the environment of the OS that will work with this gem. Default settings for all heme is written to the file ~/.molflow, or as –path parameter
Public Class Methods
source_root()
click to toggle source
# File lib/molflow/commands/install.rb, line 13 def self.source_root File.expand_path('../install', __FILE__) end
Public Instance Methods
complete()
click to toggle source
# File lib/molflow/commands/install.rb, line 36 def complete say('COMPLETE!', :green) say('') end
copy_configuration()
click to toggle source
# File lib/molflow/commands/install.rb, line 26 def copy_configuration template('molflow', options[:path]) say('') end
enviroment_variable_warning()
click to toggle source
# File lib/molflow/commands/install.rb, line 31 def enviroment_variable_warning say("IMPORTANT!!! Add 'export MOLFLOW_BASE_CONFIG=#{options[:path]}' to you shell rc file(~/.bashrc or ~/.zshrc)", :yellow) say('') end
init_variables()
click to toggle source
# File lib/molflow/commands/install.rb, line 17 def init_variables say('') say('Enter your Atlassian credentials.') @site = ask('URL: ') @username = ask('Username: ') @password = ask('Password: ') say('') end