Class: RightConf::BundlerConfigurator

Inherits:
Object
  • Object
show all
Includes:
Configurator
Defined in:
lib/rconf/configurators/bundler_configurator.rb

Constant Summary collapse

DEFAULT_GEM_PATH =
'vendor/system_gems/cache'

Instance Method Summary collapse

Methods included from Configurator

#[], #check, included, #post_process, #run, #signature, #validate

Methods included from ProgressReporter

included, report_to_file, report_to_stdout

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RightConf::Configurator

Instance Method Details

#check_linuxObject Also known as: check_darwin

Check whether bundler is already installed

Return

true

If bundler is already installed

false

Otherwise



34
35
36
# File 'lib/rconf/configurators/bundler_configurator.rb', line 34

def check_linux
  check_bundler && check_bundle
end

#check_windowsObject

Not implemented on windows

Raise

(Exception)

Always raise



43
44
45
# File 'lib/rconf/configurators/bundler_configurator.rb', line 43

def check_windows
  raise "Bundler is not supported on Windows!"
end

#run_linuxObject Also known as: run_darwin

Install bundler if needed and run bundle install.

Return

true

Always return true



51
52
53
54
55
# File 'lib/rconf/configurators/bundler_configurator.rb', line 51

def run_linux
  install_bundler
  install_bundle
  true
end

#run_windowsObject

Not implemented on windows

Raise

(Exception)

Always raise



62
63
64
# File 'lib/rconf/configurators/bundler_configurator.rb', line 62

def run_windows
  raise "Bundler is not supported on Windows!"
end