Module: Isomorfeus::Installer

Defined in:
lib/isomorfeus/installer.rb,
lib/isomorfeus/installer/dsl.rb,
lib/isomorfeus/installer/bundle.rb,
lib/isomorfeus/installer/gemfile.rb,
lib/isomorfeus/installer/target/web.rb,
lib/isomorfeus/installer/new_project.rb,
lib/isomorfeus/installer/test_app_files.rb,
lib/isomorfeus/installer/install_targets.rb,
lib/isomorfeus/installer/options_mangler.rb

Defined Under Namespace

Modules: DSL, OptionsMangler, Target, TestAppFiles Classes: Bundle, Gemfile, InstallTargets, NewProject

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.app_classObject (readonly)

application options



6
7
8
# File 'lib/isomorfeus/installer.rb', line 6

def app_class
  @app_class
end

.databaseObject

Returns the value of attribute database.



7
8
9
# File 'lib/isomorfeus/installer.rb', line 7

def database
  @database
end

.frameworkObject

Returns the value of attribute framework.



8
9
10
# File 'lib/isomorfeus/installer.rb', line 8

def framework
  @framework
end

.isomorfeus_moduleObject

Returns the value of attribute isomorfeus_module.



9
10
11
# File 'lib/isomorfeus/installer.rb', line 9

def isomorfeus_module
  @isomorfeus_module
end

.optionsObject

installer options



19
20
21
# File 'lib/isomorfeus/installer.rb', line 19

def options
  @options
end

.project_dirObject (readonly)

Returns the value of attribute project_dir.



10
11
12
# File 'lib/isomorfeus/installer.rb', line 10

def project_dir
  @project_dir
end

.project_nameObject (readonly)

Returns the value of attribute project_name.



11
12
13
# File 'lib/isomorfeus/installer.rb', line 11

def project_name
  @project_name
end

.rack_serverObject

Returns the value of attribute rack_server.



12
13
14
# File 'lib/isomorfeus/installer.rb', line 12

def rack_server
  @rack_server
end

.rack_server_nameObject

Returns the value of attribute rack_server_name.



13
14
15
# File 'lib/isomorfeus/installer.rb', line 13

def rack_server_name
  @rack_server_name
end

.roda_app_classObject (readonly)

Returns the value of attribute roda_app_class.



14
15
16
# File 'lib/isomorfeus/installer.rb', line 14

def roda_app_class
  @roda_app_class
end

.roda_app_pathObject (readonly)

Returns the value of attribute roda_app_path.



15
16
17
# File 'lib/isomorfeus/installer.rb', line 15

def roda_app_path
  @roda_app_path
end

.source_dirObject

Returns the value of attribute source_dir.



16
17
18
# File 'lib/isomorfeus/installer.rb', line 16

def source_dir
  @source_dir
end

Class Method Details

.add_rack_server(name, props) ⇒ Object



34
35
36
# File 'lib/isomorfeus/installer.rb', line 34

def add_rack_server(name, props)
  rack_servers[name] = props
end

.base_pathObject

installer paths



48
49
50
# File 'lib/isomorfeus/installer.rb', line 48

def base_path
  @base_path ||= File.realpath(File.join(File.dirname(File.realpath(__FILE__)), 'installer'))
end

.rack_serversObject



38
39
40
# File 'lib/isomorfeus/installer.rb', line 38

def rack_servers
  @rack_servers ||= {}
end

.set_project_names(pro_dir) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/isomorfeus/installer.rb', line 21

def set_project_names(pro_dir)
  @project_dir    = pro_dir
  @project_name   = pro_dir.underscore
  @app_class      = @project_name.camelize + 'App'
  @roda_app_class = @project_name.camelize + 'RodaApp'
  @roda_app_path  = @project_name + '_roda_app'
end

.sorted_rack_serversObject



42
43
44
# File 'lib/isomorfeus/installer.rb', line 42

def sorted_rack_servers
  rack_servers.keys.sort
end

.templates_pathObject



52
53
54
# File 'lib/isomorfeus/installer.rb', line 52

def templates_path
  @templates_path ||= File.realpath(File.join(File.dirname(File.realpath(__FILE__)), 'installer', 'templates'))
end