Sha256: 1c95fee5bf9a7ea16c24da2b697d7709da2770e0ecea5a814ab75fe107552643
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
module Space class Action class Local < Action def run Events.sources.registered do scope.each do |repo| system "bundle config --global local.#{repo.name} #{repo.path}" end sleep 0.2 # not perfect, but fsevent is too slow to trigger end end end class Remote < Action def run Events.sources.registered do scope.each do |repo| system "bundle config --delete local.#{repo.name}" end sleep 0.2 end end end # class Install < Action # def run # in_scope do |repo| # repo.execute 'bundle install' # repo.refresh # end # end # end # class Update < Action # def run # in_scope do |repo| # repo.execute 'bundle update' # repo.execute 'git commit -am "bump dependencies"' # repo.refresh # end # end # end # class Checkout < Action # def run # # check if branch exists, git co (-b) # end # end # class PullDeps < Action # def run # # pull all dependencies # end # end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
space-0.0.6 | lib/space/action/development.rb |