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