Sha256: 1f6bb442b47ea682d8f2e5ec931d3aa32c171b42c583b4cd4587987817376b8f

Contents?: true

Size: 857 Bytes

Versions: 13

Compression:

Stored size: 857 Bytes

Contents

require 'ruby_fly/version'
require 'ruby_fly/commands'

module RubyFly
  class << self
    attr_writer :configuration

    def configuration
      @configuration ||= Configuration.new
    end

    def configure
      yield(configuration)
    end

    def reset!
      @configuration = nil
    end
  end

  module ClassMethods
    def get_pipeline(opts = {})
      Commands::GetPipeline.new.execute(opts)
    end

    def set_pipeline(opts = {})
      Commands::SetPipeline.new.execute(opts)
    end

    def unpause_pipeline(opts = {})
      Commands::UnpausePipeline.new.execute(opts)
    end

    def version
      Commands::Version.new.execute
    end
  end
  extend ClassMethods

  def self.included(other)
    other.extend(ClassMethods)
  end

  class Configuration
    attr_accessor :binary

    def initialize
      @binary = 'fly'
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ruby_fly-0.21.0 lib/ruby_fly.rb
ruby_fly-0.20.0.pre.1 lib/ruby_fly.rb
ruby_fly-0.19.0 lib/ruby_fly.rb
ruby_fly-0.18.0.pre.1 lib/ruby_fly.rb
ruby_fly-0.17.0 lib/ruby_fly.rb
ruby_fly-0.16.0.pre.2 lib/ruby_fly.rb
ruby_fly-0.16.0.pre.1 lib/ruby_fly.rb
ruby_fly-0.15.0 lib/ruby_fly.rb
ruby_fly-0.14.0.pre.1 lib/ruby_fly.rb
ruby_fly-0.13.0 lib/ruby_fly.rb
ruby_fly-0.12.0.pre.1 lib/ruby_fly.rb
ruby_fly-0.11.0 lib/ruby_fly.rb
ruby_fly-0.10.0.pre.1 lib/ruby_fly.rb