Module: SymlinkFast

Defined in:
lib/symlink_fast.rb,
lib/symlink_fast/version.rb

Constant Summary collapse

VERSION =
"1.0.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configs_pathObject

Returns the value of attribute configs_path.



6
7
8
# File 'lib/symlink_fast.rb', line 6

def configs_path
  @configs_path
end

.release_pathObject

Returns the value of attribute release_path.



7
8
9
# File 'lib/symlink_fast.rb', line 7

def release_path
  @release_path
end

.shared_pathObject

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


17
18
19
# File 'lib/symlink_fast.rb', line 17

def self.symlink( config )
  "ln -s '#{ configs_path }/#{ config }.yml' '#{ release_path }/config/'"
end