Sha256: da1ae1c000e98b2637f1f92a16002750a83a69ce59a545a9bb5ffac2ed62787b

Contents?: true

Size: 661 Bytes

Versions: 3

Compression:

Stored size: 661 Bytes

Contents

require 'ansi/core'

module Space
  class Action
    class Execute < Action
      def run
        in_scope do |repo|
          in_repo(repo) do
            system(*args)
            puts
          end
        end
        confirm
      end
    end

    class Refresh < Action
      def run
        project.bundler.refresh
        in_scope do |repo|
          repo.refresh
        end
      end
    end

    class Scope < Action
      def run
        project.repos.scope = scope
        Events.notify(:finish)
      end
    end

    class Unscope < Action
      def run
        project.repos.scope = nil
        Events.notify(:finish)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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