Module: Pointer::Variables
- Included in:
- EasyDeploy
- Defined in:
- lib/pointer/variables.rb
Instance Method Summary collapse
- #bitbucket ⇒ Object
- #deployer_application ⇒ Object
- #host ⇒ Object
- #mina ⇒ Object
- #nginx ⇒ Object
- #password ⇒ Object
- #port ⇒ Object
- #postgres ⇒ Object
- #private_key ⇒ Object
- #public_key ⇒ Object
- #rails_user ⇒ Object
- #ruby_version ⇒ Object
- #site_port ⇒ Object
- #user ⇒ Object
Instance Method Details
#bitbucket ⇒ Object
43 44 45 |
# File 'lib/pointer/variables.rb', line 43 def bitbucket @options[:git_repo].include? '@bitbucket.org' end |
#deployer_application ⇒ Object
51 52 53 |
# File 'lib/pointer/variables.rb', line 51 def deployer_application @options[:deployer_application] end |
#host ⇒ Object
23 24 25 |
# File 'lib/pointer/variables.rb', line 23 def host @options[:ssh_host] end |
#mina ⇒ Object
47 48 49 |
# File 'lib/pointer/variables.rb', line 47 def mina @options[:deployer] == :mina end |
#nginx ⇒ Object
39 40 41 |
# File 'lib/pointer/variables.rb', line 39 def nginx @options[:web_server] == :nginx end |
#password ⇒ Object
15 16 17 |
# File 'lib/pointer/variables.rb', line 15 def password @options[:password] end |
#port ⇒ Object
27 28 29 |
# File 'lib/pointer/variables.rb', line 27 def port @options[:ssh_port] end |
#postgres ⇒ Object
55 56 57 |
# File 'lib/pointer/variables.rb', line 55 def postgres @options[:database] == :postgres end |
#private_key ⇒ Object
7 8 9 |
# File 'lib/pointer/variables.rb', line 7 def private_key @options[:private_key] end |
#public_key ⇒ Object
11 12 13 |
# File 'lib/pointer/variables.rb', line 11 def public_key @options[:public_key] end |
#rails_user ⇒ Object
3 4 5 |
# File 'lib/pointer/variables.rb', line 3 def rails_user @options[:rails_user] end |
#ruby_version ⇒ Object
31 32 33 |
# File 'lib/pointer/variables.rb', line 31 def ruby_version @options[:ruby_version] || "1.9.3" end |
#site_port ⇒ Object
35 36 37 |
# File 'lib/pointer/variables.rb', line 35 def site_port @options[:site_port].to_i || 80 end |
#user ⇒ Object
19 20 21 |
# File 'lib/pointer/variables.rb', line 19 def user @options[:ssh_user] end |