Sha256: d7d42080f36db1da7614a12b8b5a983c50b69e359b76d04f53010b01480dd655
Contents?: true
Size: 873 Bytes
Versions: 7
Compression:
Stored size: 873 Bytes
Contents
# Create an empty project in the current directory. def create template_path = File.expand_path("../../template/*", __dir__) Dir.glob(template_path) do |path| FileUtils::Verbose.cp_r path, Dir.pwd end end # Serve the project locally. def serve config_path = File.expand_path("../../template/config.ru", __dir__) preload_path = File.expand_path("../../template/preload.rb", __dir__) system("falcon", "serve", "--config", config_path, "--preload", preload_path) end def static(output_path: "docs") require 'rackula/command' config_path = File.expand_path("../../template/config.ru", __dir__) public_path = File.expand_path("../../public", __dir__) Rackula::Command::Top["generate", "--force", "--config", config_path, "--public", public_path, "--output-path", output_path ].call FileUtils.touch File.expand_path(".nojekyll", output_path) end
Version data entries
7 entries across 7 versions & 1 rubygems