module JekyllPush
Public Class Methods
config_from_file(path = config_path)
click to toggle source
@return [Hash]
# File lib/jekyll_push.rb, line 39 def self.config_from_file(path = config_path) YAML.load_file path rescue StandardError => e raise JekyllPush::Error::InvalidConfig, "Could not load config file from path '#{path}'\n#{e}" end
config_path()
click to toggle source
@return [String]
# File lib/jekyll_push.rb, line 33 def self.config_path "#{`pwd`.strip}/_config.yml" end
run_command(arg, opts)
click to toggle source
@return [Nil]
# File lib/jekyll_push.rb, line 21 def self.run_command(arg, opts) site = JekyllPush::Site.new branch = JekyllPush::Branch.new arg, opts site.rebuild branch.target branch.push site.dir puts Rainbow("\nDone ✓").green end