Class: Awestruct::Commands::GitHubPages

Inherits:
Object
  • Object
show all
Defined in:
lib/awestruct/commands/git_hub_pages.rb

Instance Method Summary collapse

Constructor Details

#initialize(site_path) ⇒ GitHubPages

Returns a new instance of GitHubPages.



7
8
9
10
# File 'lib/awestruct/commands/git_hub_pages.rb', line 7

def initialize( site_path )
  @site_path = site_path
  @git       = Git.open(".")
end

Instance Method Details

#runObject



12
13
14
# File 'lib/awestruct/commands/git_hub_pages.rb', line 12

def run
  @git.status.changed.empty? ? publish_site : message_for(:existing_changes)
end