Class: StaticRails::Site
- Inherits:
-
Struct
- Object
- Struct
- StaticRails::Site
- Defined in:
- lib/static-rails/site.rb
Instance Attribute Summary collapse
-
#compile_404_file_path ⇒ Object
Returns the value of attribute compile_404_file_path.
-
#compile_command ⇒ Object
Returns the value of attribute compile_command.
-
#compile_dir ⇒ Object
Returns the value of attribute compile_dir.
-
#env ⇒ Object
Returns the value of attribute env.
-
#name ⇒ Object
Returns the value of attribute name.
-
#ping_server ⇒ Object
Returns the value of attribute ping_server.
-
#server_command ⇒ Object
Returns the value of attribute server_command.
-
#server_host ⇒ Object
Returns the value of attribute server_host.
-
#server_path ⇒ Object
Returns the value of attribute server_path.
-
#server_port ⇒ Object
Returns the value of attribute server_port.
-
#source_dir ⇒ Object
Returns the value of attribute source_dir.
-
#start_server ⇒ Object
Returns the value of attribute start_server.
-
#url_root_path ⇒ Object
Returns the value of attribute url_root_path.
-
#url_skip_paths_starting_with ⇒ Object
Returns the value of attribute url_skip_paths_starting_with.
-
#url_subdomain ⇒ Object
Returns the value of attribute url_subdomain.
Instance Method Summary collapse
-
#initialize(url_root_path: "/", url_skip_paths_starting_with: [], start_server: !Rails.env.production?,, ping_server: true, env: {}, server_host: "localhost", server_path: "/", **other_kwargs) ⇒ Site
constructor
A new instance of Site.
Constructor Details
#initialize(url_root_path: "/", url_skip_paths_starting_with: [], start_server: !Rails.env.production?,, ping_server: true, env: {}, server_host: "localhost", server_path: "/", **other_kwargs) ⇒ Site
Returns a new instance of Site.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/static-rails/site.rb', line 21 def initialize( url_root_path: "/", url_skip_paths_starting_with: [], start_server: !Rails.env.production?, ping_server: true, env: {}, server_host: "localhost", server_path: "/", **other_kwargs ) @url_root_path = url_root_path @url_skip_paths_starting_with = url_skip_paths_starting_with @start_server = start_server @ping_server = ping_server @env = env @server_host = server_host @server_path = server_path super end |
Instance Attribute Details
#compile_404_file_path ⇒ Object
Returns the value of attribute compile_404_file_path
2 3 4 |
# File 'lib/static-rails/site.rb', line 2 def compile_404_file_path @compile_404_file_path end |
#compile_command ⇒ Object
Returns the value of attribute compile_command
2 3 4 |
# File 'lib/static-rails/site.rb', line 2 def compile_command @compile_command end |
#compile_dir ⇒ Object
Returns the value of attribute compile_dir
2 3 4 |
# File 'lib/static-rails/site.rb', line 2 def compile_dir @compile_dir end |
#env ⇒ Object
Returns the value of attribute env
2 3 4 |
# File 'lib/static-rails/site.rb', line 2 def env @env end |
#name ⇒ Object
Returns the value of attribute name
2 3 4 |
# File 'lib/static-rails/site.rb', line 2 def name @name end |
#ping_server ⇒ Object
Returns the value of attribute ping_server
2 3 4 |
# File 'lib/static-rails/site.rb', line 2 def ping_server @ping_server end |
#server_command ⇒ Object
Returns the value of attribute server_command
2 3 4 |
# File 'lib/static-rails/site.rb', line 2 def server_command @server_command end |
#server_host ⇒ Object
Returns the value of attribute server_host
2 3 4 |
# File 'lib/static-rails/site.rb', line 2 def server_host @server_host end |
#server_path ⇒ Object
Returns the value of attribute server_path
2 3 4 |
# File 'lib/static-rails/site.rb', line 2 def server_path @server_path end |
#server_port ⇒ Object
Returns the value of attribute server_port
2 3 4 |
# File 'lib/static-rails/site.rb', line 2 def server_port @server_port end |
#source_dir ⇒ Object
Returns the value of attribute source_dir
2 3 4 |
# File 'lib/static-rails/site.rb', line 2 def source_dir @source_dir end |
#start_server ⇒ Object
Returns the value of attribute start_server
2 3 4 |
# File 'lib/static-rails/site.rb', line 2 def start_server @start_server end |
#url_root_path ⇒ Object
Returns the value of attribute url_root_path
2 3 4 |
# File 'lib/static-rails/site.rb', line 2 def url_root_path @url_root_path end |
#url_skip_paths_starting_with ⇒ Object
Returns the value of attribute url_skip_paths_starting_with
2 3 4 |
# File 'lib/static-rails/site.rb', line 2 def url_skip_paths_starting_with @url_skip_paths_starting_with end |
#url_subdomain ⇒ Object
Returns the value of attribute url_subdomain
2 3 4 |
# File 'lib/static-rails/site.rb', line 2 def url_subdomain @url_subdomain end |