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
-
.app_class ⇒ Object
readonly
application options.
-
.database ⇒ Object
Returns the value of attribute database.
-
.framework ⇒ Object
Returns the value of attribute framework.
-
.isomorfeus_module ⇒ Object
Returns the value of attribute isomorfeus_module.
-
.options ⇒ Object
installer options.
-
.project_dir ⇒ Object
readonly
Returns the value of attribute project_dir.
-
.project_name ⇒ Object
readonly
Returns the value of attribute project_name.
-
.rack_server ⇒ Object
Returns the value of attribute rack_server.
-
.rack_server_name ⇒ Object
Returns the value of attribute rack_server_name.
-
.roda_app_class ⇒ Object
readonly
Returns the value of attribute roda_app_class.
-
.roda_app_path ⇒ Object
readonly
Returns the value of attribute roda_app_path.
-
.source_dir ⇒ Object
Returns the value of attribute source_dir.
Class Method Summary collapse
- .add_rack_server(name, props) ⇒ Object
-
.base_path ⇒ Object
installer paths.
- .rack_servers ⇒ Object
- .set_project_names(pro_dir) ⇒ Object
- .sorted_rack_servers ⇒ Object
- .templates_path ⇒ Object
Class Attribute Details
.app_class ⇒ Object (readonly)
application options
6 7 8 |
# File 'lib/isomorfeus/installer.rb', line 6 def app_class @app_class end |
.database ⇒ Object
Returns the value of attribute database.
7 8 9 |
# File 'lib/isomorfeus/installer.rb', line 7 def database @database end |
.framework ⇒ Object
Returns the value of attribute framework.
8 9 10 |
# File 'lib/isomorfeus/installer.rb', line 8 def framework @framework end |
.isomorfeus_module ⇒ Object
Returns the value of attribute isomorfeus_module.
9 10 11 |
# File 'lib/isomorfeus/installer.rb', line 9 def isomorfeus_module @isomorfeus_module end |
.options ⇒ Object
installer options
19 20 21 |
# File 'lib/isomorfeus/installer.rb', line 19 def @options end |
.project_dir ⇒ Object (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_name ⇒ Object (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_server ⇒ Object
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_name ⇒ Object
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_class ⇒ Object (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_path ⇒ Object (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_dir ⇒ Object
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_path ⇒ Object
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_servers ⇒ Object
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_servers ⇒ Object
42 43 44 |
# File 'lib/isomorfeus/installer.rb', line 42 def sorted_rack_servers rack_servers.keys.sort end |
.templates_path ⇒ Object
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 |