Sha256: 55b7900d510f469a7831fa266706605d7d25101566e88ae1dda45b1743fd8eb1

Contents?: true

Size: 1.01 KB

Versions: 3

Compression:

Stored size: 1.01 KB

Contents

module Space
  class Action
    class Local < Action
      def run
        scope.each do |repo|
          system "bundle config --global local.#{repo.name} #{repo.path}"
        end
        confirm
      end
    end

    class Remote < Action
      def run
        scope.each do |repo|
          system "bundle config --delete local.#{repo.name}"
        end
        confirm
      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

3 entries across 3 versions & 1 rubygems

Version Path
space-0.0.9 lib/space/action/development.rb
space-0.0.8 lib/space/action/development.rb
space-0.0.7 lib/space/action/development.rb