Class: Dply::Bundle

Inherits:
Object
  • Object
show all
Includes:
Helper
Defined in:
lib/dply/bundle.rb

Instance Method Summary collapse

Methods included from Helper

#cmd, #error, #git, #logger, #stringify_values!, #symlink

Instance Method Details

#cleanObject



24
25
26
# File 'lib/dply/bundle.rb', line 24

def clean
  cmd "bundle clean"
end

#installObject



10
11
12
13
14
# File 'lib/dply/bundle.rb', line 10

def install
  init
  return if check
  cmd "bundle install -j5 --deployment"
end

#rake(task, **args) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/dply/bundle.rb', line 16

def rake(task, **args)
  if gemfile_exists?
    cmd "bundle exec rake -Nf dply/Rakefile -R dply #{task}", env: env
  else
    cmd "rake -Nf dply/Rakefile -R dply #{task}", env: env
  end
end