Sha256: fca311e3d1c316262c8257dae949be0ae29b096d0b4683a4b9f690226b46046c

Contents?: true

Size: 637 Bytes

Versions: 20

Compression:

Stored size: 637 Bytes

Contents

# frozen_string_literal: true

require 'ruby_helm/version'
require 'ruby_helm/commands'

module RubyHelm
  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 clean(opts = {})
      Commands::Clean.new.execute(opts)
    end
  end

  extend ClassMethods

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

  class Configuration
    attr_accessor :binary

    def initialize
      @binary = 'helm'
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
ruby_helm-0.6.0.pre.2 lib/ruby_helm.rb
ruby_helm-0.6.0.pre.1 lib/ruby_helm.rb
ruby_helm-0.5.0 lib/ruby_helm.rb
ruby_helm-0.4.0.pre.6 lib/ruby_helm.rb
ruby_helm-0.4.0.pre.5 lib/ruby_helm.rb
ruby_helm-0.4.0.pre.4 lib/ruby_helm.rb
ruby_helm-0.4.0.pre.3 lib/ruby_helm.rb
ruby_helm-0.4.0.pre.2 lib/ruby_helm.rb
ruby_helm-0.4.0.pre.1 lib/ruby_helm.rb
ruby_helm-0.3.0 lib/ruby_helm.rb
ruby_helm-0.2.0.pre.10 lib/ruby_helm.rb
ruby_helm-0.2.0.pre.9 lib/ruby_helm.rb
ruby_helm-0.2.0.pre.8 lib/ruby_helm.rb
ruby_helm-0.2.0.pre.7 lib/ruby_helm.rb
ruby_helm-0.2.0.pre.6 lib/ruby_helm.rb
ruby_helm-0.2.0.pre.5 lib/ruby_helm.rb
ruby_helm-0.2.0.pre.4 lib/ruby_helm.rb
ruby_helm-0.2.0.pre.3 lib/ruby_helm.rb
ruby_helm-0.2.0.pre.2 lib/ruby_helm.rb
ruby_helm-0.2.0.pre.1 lib/ruby_helm.rb