diff options
| author | mirichi <[email protected]> | 2013-07-06 08:31:01 +0900 |
|---|---|---|
| committer | mirichi <[email protected]> | 2013-07-06 08:31:01 +0900 |
| commit | c3e81aca651100e40a03494c9fcc7b8e84302b0a (patch) | |
| tree | e7256423448ca4f42f9e11f98bc8881829fd32bb /tasks/mruby_build_commands.rake | |
| parent | a01845b502a902ee1de2f34645177e64fafbb551 (diff) | |
| parent | d4b8fdd7a56ac17064bfcce75df25f100b4a407c (diff) | |
| download | mruby-c3e81aca651100e40a03494c9fcc7b8e84302b0a.tar.gz mruby-c3e81aca651100e40a03494c9fcc7b8e84302b0a.zip | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'tasks/mruby_build_commands.rake')
| -rw-r--r-- | tasks/mruby_build_commands.rake | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tasks/mruby_build_commands.rake b/tasks/mruby_build_commands.rake index 1d69fa54d..b678b1f0e 100644 --- a/tasks/mruby_build_commands.rake +++ b/tasks/mruby_build_commands.rake @@ -220,19 +220,28 @@ module MRuby class Command::Git < Command attr_accessor :flags - attr_accessor :clone_options + attr_accessor :clone_options, :pull_options def initialize(build) super @command = 'git' @flags = [] @clone_options = "clone %{flags} %{url} %{dir}" + @pull_options = "pull" end def run_clone(dir, url, _flags = []) _pp "GIT", url, dir.relative_path _run clone_options, { :flags => [flags, _flags].flatten.join(' '), :url => url, :dir => filename(dir) } end + + def run_pull(dir, url) + root = Dir.pwd + Dir.chdir dir + _pp "GIT PULL", url, dir.relative_path + _run pull_options + Dir.chdir root + end end class Command::Mrbc < Command |
