Sha256: 5b878a0b0e59a95c4330870cc739b392bb3985dad6aa14b18ef5248929946fc3

Contents?: true

Size: 793 Bytes

Versions: 2

Compression:

Stored size: 793 Bytes

Contents

module Space
  class App
    class Command
      class Execute < Command
        def run
          Bundler.with_clean_env do
            in_scope do |repo|
              repo.buffering do
                puts
                repo.execute(*args)
              end
            end
            confirm
          end
        end
      end

      class Refresh < Command
        def run
          Bundler.with_clean_env do
            project.bundler.refresh
            in_scope do |repo|
              repo.refresh
            end
          end
        end
      end

      class Scope < Command
        def run
          project.repos.scope = repos
        end
      end

      class Unscope < Command
        def run
          project.repos.scope = nil
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
space-0.0.5 lib/space/app/command/builtin.rb
space-0.0.4 lib/space/app/command/builtin.rb