Class: EY::Serverside::DependencyManager::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/engineyard-serverside/dependency_manager/base.rb

Direct Known Subclasses

Bundler, Composer, Npm

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(servers, config, shell, runner) ⇒ Base

Returns a new instance of Base.


12
13
14
# File 'lib/engineyard-serverside/dependency_manager/base.rb', line 12

def initialize(servers, config, shell, runner)
  @servers, @config, @shell, @runner = servers, config, shell, runner
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config


5
6
7
# File 'lib/engineyard-serverside/dependency_manager/base.rb', line 5

def config
  @config
end

#runnerObject (readonly)

Returns the value of attribute runner


5
6
7
# File 'lib/engineyard-serverside/dependency_manager/base.rb', line 5

def runner
  @runner
end

#serversObject (readonly)

Returns the value of attribute servers


5
6
7
# File 'lib/engineyard-serverside/dependency_manager/base.rb', line 5

def servers
  @servers
end

#shellObject (readonly)

Returns the value of attribute shell


5
6
7
# File 'lib/engineyard-serverside/dependency_manager/base.rb', line 5

def shell
  @shell
end

Class Method Details

.detect(*args) ⇒ Object


7
8
9
10
# File 'lib/engineyard-serverside/dependency_manager/base.rb', line 7

def self.detect(*args)
  manager = new(*args)
  manager.detected? ? manager : nil
end

Instance Method Details

#checkObject


19
# File 'lib/engineyard-serverside/dependency_manager/base.rb', line 19

def check() end

#detected?Boolean

Public interface

Returns:

  • (Boolean)

18
# File 'lib/engineyard-serverside/dependency_manager/base.rb', line 18

def detected?() false end

#installObject


20
# File 'lib/engineyard-serverside/dependency_manager/base.rb', line 20

def install() end

#rails_versionObject


22
# File 'lib/engineyard-serverside/dependency_manager/base.rb', line 22

def rails_version() end

#show_ey_config_instructionsObject


23
# File 'lib/engineyard-serverside/dependency_manager/base.rb', line 23

def show_ey_config_instructions() end

#uses_sqlite3?Boolean

Returns:

  • (Boolean)

21
# File 'lib/engineyard-serverside/dependency_manager/base.rb', line 21

def uses_sqlite3?() end