Class: Molflow::Commands::Install
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Molflow::Commands::Install
show all
- Extended by:
- Molflow::CommandOptions
- Includes:
- Thor::Actions
- Defined in:
- lib/molflow/commands/install.rb
Overview
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
Class Method Summary
collapse
Instance Method Summary
collapse
install_options, jira_options, open_options
Class Method Details
.source_root ⇒ Object
13
14
15
|
# File 'lib/molflow/commands/install.rb', line 13
def self.source_root
File.expand_path('../install', __FILE__)
end
|
Instance Method Details
#complete ⇒ Object
36
37
38
39
|
# File 'lib/molflow/commands/install.rb', line 36
def complete
say('COMPLETE!', :green)
say('')
end
|
#copy_configuration ⇒ Object
26
27
28
29
|
# File 'lib/molflow/commands/install.rb', line 26
def copy_configuration
template('molflow', options[:path])
say('')
end
|
#enviroment_variable_warning ⇒ Object
31
32
33
34
|
# 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 ⇒ Object
17
18
19
20
21
22
23
24
|
# 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
|