module Squarespace::Sync

Constants

VERSION

Public Class Methods

config() click to toggle source
# File lib/squarespace/sync.rb, line 16
def self.config
  File.join(local_path, "squarespace.yaml")
end
local_path() click to toggle source
# File lib/squarespace/sync.rb, line 12
def self.local_path
  Dir.pwd
end
options() click to toggle source
# File lib/squarespace/sync.rb, line 20
def self.options
  if File.exists? config
    options = YAML.load_file( config )
    options["ignore"] << "squarespace.yaml"
    Thor::CoreExt::HashWithIndifferentAccess.new( options )
  else
    abort "No config exists. Run `squarespace setup` to create it."
  end
end