Method: Dragon::Deploy#default_commands

Defined in:
lib/dragon/deploy.rb

#default_commands(sequence) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/dragon/deploy.rb', line 10

def default_commands sequence
   return {} if @options.local_settings.has_key?( "commands_run_default" )
   {
      use_git: [{
         git: "clone --depth=1 --branch=#{ @options.local_settings["git_branch"] } #{ @options.local_settings["git_url"] } #{ @options.release_dir }",
      }],
      local_upload: [{
         dir_upload: "#{ @options.local_settings["local_upload_dir"] }",
      }],
      current_linking: [{
         ln: "-nfs #{ @options.release_dir } #{ @options.local_settings["destination_symlink"] }",
      }]
   }[sequence]
end