Sha256: 363004b360a582dbde8f089f3ee15532f0ad0530635b9cd4a43d2548b8d31ece

Contents?: true

Size: 1011 Bytes

Versions: 42

Compression:

Stored size: 1011 Bytes

Contents

module Octopolo
  # Provide access to the CLI class into other classes in the application
  module CLIWrapper
    attr_accessor :cli

    # Public: Wrapper method around CLI class
    #
    # Returns the CLI class or equivalent
    def cli
      @cli ||= CLI
    end
  end

  # Provide access to the config into other classes in the application
  module ConfigWrapper
    attr_accessor :config

    # Public: Wrapper around the user's and app's configuration
    #
    # Returns an instance of Config or equivalent
    def config
      @config ||= Octopolo.config
    end
  end

  # Provide access to user-supplied configuration values
  module UserConfigWrapper
    attr_accessor :user_config

    # Returns an instance of UserConfig or equivalent
    def user_config
      @user_config ||= UserConfig.parse
    end
  end

  module GitWrapper
    attr_accessor :git

    # Public: Wrapper method around Git class
    #
    # Returns the Git class or equivalent
    def git
      @git ||= Git
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
octopolo-1.12.0 lib/octopolo/convenience_wrappers.rb
octopolo-1.11.4 lib/octopolo/convenience_wrappers.rb
octopolo-1.11.3 lib/octopolo/convenience_wrappers.rb
octopolo-1.11.1 lib/octopolo/convenience_wrappers.rb
octopolo-1.11.0 lib/octopolo/convenience_wrappers.rb
octopolo-1.9.0 lib/octopolo/convenience_wrappers.rb
octopolo-1.8.1 lib/octopolo/convenience_wrappers.rb
octopolo-1.8.0 lib/octopolo/convenience_wrappers.rb
octopolo-1.7.1 lib/octopolo/convenience_wrappers.rb
octopolo-1.7.0 lib/octopolo/convenience_wrappers.rb
octopolo-1.6.0 lib/octopolo/convenience_wrappers.rb
octopolo-1.5.3 lib/octopolo/convenience_wrappers.rb
octopolo-1.5.2 lib/octopolo/convenience_wrappers.rb
octopolo-1.5.1 lib/octopolo/convenience_wrappers.rb
octopolo-1.5.0 lib/octopolo/convenience_wrappers.rb
octopolo-1.4.0 lib/octopolo/convenience_wrappers.rb
octopolo-1.3.0 lib/octopolo/convenience_wrappers.rb
octopolo-1.2.1 lib/octopolo/convenience_wrappers.rb
octopolo-1.2.0 lib/octopolo/convenience_wrappers.rb
octopolo-1.1.1 lib/octopolo/convenience_wrappers.rb