Module: Bootswitch

Defined in:
lib/bootswitch.rb,
lib/bootswitch/engine.rb,
lib/bootswitch/helpers.rb,
lib/bootswitch/railtie.rb,
lib/bootswitch/version.rb,
lib/bootswitch/configuration.rb,
lib/generators/bootswitch/utils.rb,
lib/generators/bootswitch/install/install_generator.rb

Defined Under Namespace

Modules: Generators, Helpers Classes: Configuration, Engine, InstallGenerator, Railtie

Constant Summary collapse

VERSION =
File.read(File.expand_path('../../../VERSION', __FILE__))

Class Method Summary collapse

Class Method Details

.configurationObject



9
10
11
# File 'lib/bootswitch/configuration.rb', line 9

def self.configuration
  @@configuration ||= Bootswitch::Configuration.new
end

.configure(configuration = Bootswitch::Configuration.new) ⇒ Object



2
3
4
5
6
7
# File 'lib/bootswitch/configuration.rb', line 2

def self.configure(configuration = Bootswitch::Configuration.new)
  if block_given?
    yield configuration
  end
  @@configuration = configuration
end

.version_stringObject



4
5
6
# File 'lib/bootswitch/version.rb', line 4

def self.version_string
  "Bootswitch version #{Bootswitch::VERSION}"
end