lib/dvm/cli.rb in dvm-0.1.3 vs lib/dvm/cli.rb in dvm-0.1.4
- old
+ new
@@ -40,11 +40,11 @@
def share_path(*p)
File.join share, p
end
def shared_dirs
- %w(public/upload log)
+ %w(public/upload log vendor)
end
def shared_files
Dir.glob(current_path('config', '**', '*.example')).collect do |c|
File.join 'config', c.split('config')[1][1..-1].split('.')[0..-2].join('.')
@@ -222,9 +222,14 @@
CLI.new(Dir.getwd, '').start
elsif action == 'stop'
CLI.new(Dir.getwd, '').stop
elsif action == 'restart'
CLI.new(Dir.getwd, '').restart
+ elsif action == 'deploy'
+ cli = CLI.new Dir.getcwd, ''
+ cli.stop
+ cli.update
+ cli.start
else
root = Dir.getwd
repo = action
if action.start_with? 'g:'