Module: OdaniaStaticPages

Defined in:
lib/odania_static_pages.rb,
lib/odania_static_pages/cli.rb,
lib/odania_static_pages/config.rb,
lib/odania_static_pages/version.rb,
lib/odania_static_pages/config/s3.rb,
lib/odania_static_pages/deploy/s3.rb,
lib/odania_static_pages/config/rsync.rb,
lib/odania_static_pages/deploy/rsync.rb,
lib/odania_static_pages/server/nginx.rb,
lib/odania_static_pages/cli/deploy_cli.rb,
lib/odania_static_pages/generator/jekyll.rb,
lib/odania_static_pages/cli/generator_cli.rb,
lib/odania_static_pages/config/docker_compose.rb,
lib/odania_static_pages/deploy/docker_compose.rb,
lib/odania_static_pages/config/generator/jekyll.rb

Defined Under Namespace

Modules: Deploy, Generator, Server Classes: Cli, Config, DeployCli, GeneratorCli

Constant Summary collapse

VERSION =
'0.1.10'

Class Method Summary collapse

Class Method Details

.config(path = nil) ⇒ Object



22
23
24
25
26
27
28
29
# File 'lib/odania_static_pages.rb', line 22

def self.config(path=nil)
	if @config.nil? or !path.nil?
		@config = OdaniaStaticPages::Config.new(path)
		@config.load!
	end

	@config
end