Sha256: d2207519dd7e446fdd5bf3f3a48866e76aaf00b0b7949d36f48ad9eb714b921e
Contents?: true
Size: 953 Bytes
Versions: 2
Compression:
Stored size: 953 Bytes
Contents
require 'ruby_fly/version' require 'ruby_fly/commands' require 'ruby_fly/rc' 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 login(opts = {}) Commands::Login.new.execute(opts) end 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby_fly-0.27.0 | lib/ruby_fly.rb |
ruby_fly-0.26.0.pre.1 | lib/ruby_fly.rb |