Module: SymlinkFast
- Defined in:
- lib/symlink_fast.rb,
lib/symlink_fast/version.rb
Constant Summary collapse
- VERSION =
"1.0.0"
Class Attribute Summary collapse
-
.configs_path ⇒ Object
Returns the value of attribute configs_path.
-
.release_path ⇒ Object
Returns the value of attribute release_path.
-
.shared_path ⇒ Object
Returns the value of attribute shared_path.
Class Method Summary collapse
Class Attribute Details
.configs_path ⇒ Object
Returns the value of attribute configs_path.
6 7 8 |
# File 'lib/symlink_fast.rb', line 6 def configs_path @configs_path end |
.release_path ⇒ Object
Returns the value of attribute release_path.
7 8 9 |
# File 'lib/symlink_fast.rb', line 7 def release_path @release_path end |
.shared_path ⇒ Object
Returns the value of attribute shared_path.
8 9 10 |
# File 'lib/symlink_fast.rb', line 8 def shared_path @shared_path end |
Class Method Details
.command(configs) ⇒ Object
11 12 13 14 15 |
# File 'lib/symlink_fast.rb', line 11 def self.command( configs ) configs.map do |config| symlink config end.join(' && ') end |
.symlink(config) ⇒ Object
17 18 19 |
# File 'lib/symlink_fast.rb', line 17 def self.symlink( config ) "ln -s '#{ configs_path }/#{ config }.yml' '#{ release_path }/config/'" end |