Class: Dply::Setup
- Inherits:
-
Object
show all
- Includes:
- Helper
- Defined in:
- lib/dply/setup.rb
Instance Method Summary
collapse
Methods included from Helper
#cmd, #error, #logger, #sh, #symlink
Constructor Details
#initialize(config) ⇒ Setup
Returns a new instance of Setup.
11
12
13
|
# File 'lib/dply/setup.rb', line 11
def initialize(config)
@config = config
end
|
Instance Method Details
#archive ⇒ Object
30
31
32
33
34
|
# File 'lib/dply/setup.rb', line 30
def archive
dirs = ["config", "shared", "releases", "tmp/archive", "tmp/cache"]
create_dirs dirs
create_shared_dirs
end
|
#build ⇒ Object
15
16
17
18
19
20
|
# File 'lib/dply/setup.rb', line 15
def build
dirs = ["config", "shared", "build"]
create_repo if @config.git
create_dirs dirs
create_shared_dirs
end
|
#git ⇒ Object
22
23
24
25
26
27
28
|
# File 'lib/dply/setup.rb', line 22
def git
dirs = ["config", "shared"]
create_repo
symlink "repo", "current"
create_dirs dirs
create_shared_dirs
end
|