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