Module: Contracto::Constants
- Included in:
- SystemAction
- Defined in:
- lib/contracto/constants.rb
Constant Summary collapse
- GEM_DIR =
Gem::Specification.find_by_name('contracto').gem_dir
- CONTRACTO_DIR =
'.contracto'
- CONTRACTO_TMP_DIR =
'.tmp.contracto'
- RUBY_SERVER_DIR =
"#{GEM_DIR}/lib/contracto/server/ruby"
- CONTRACT_FILENAME =
'contract.con.json'
- CONTRACT_PID_FILEPATH =
"#{CONTRACTO_DIR}/server.pid"
- PORT =
54321
Instance Method Summary collapse
- #contract_filename ⇒ Object
- #contract_pid_filepath ⇒ Object
- #contracto_dir ⇒ Object
- #contracto_tmp_dir ⇒ Object
- #gem_dir ⇒ Object
- #port ⇒ Object
- #ruby_server_dir ⇒ Object
Instance Method Details
#contract_filename ⇒ Object
26 27 28 |
# File 'lib/contracto/constants.rb', line 26 def contract_filename CONTRACT_FILENAME end |
#contract_pid_filepath ⇒ Object
30 31 32 |
# File 'lib/contracto/constants.rb', line 30 def contract_pid_filepath CONTRACT_PID_FILEPATH end |
#contracto_dir ⇒ Object
14 15 16 |
# File 'lib/contracto/constants.rb', line 14 def contracto_dir CONTRACTO_DIR end |
#contracto_tmp_dir ⇒ Object
18 19 20 |
# File 'lib/contracto/constants.rb', line 18 def contracto_tmp_dir CONTRACTO_TMP_DIR end |
#gem_dir ⇒ Object
10 11 12 |
# File 'lib/contracto/constants.rb', line 10 def gem_dir GEM_DIR end |
#port ⇒ Object
34 35 36 |
# File 'lib/contracto/constants.rb', line 34 def port PORT end |
#ruby_server_dir ⇒ Object
22 23 24 |
# File 'lib/contracto/constants.rb', line 22 def ruby_server_dir RUBY_SERVER_DIR end |