lib/gitdocs/cli.rb in gitdocs-0.2.0 vs lib/gitdocs/cli.rb in gitdocs-0.3.0
- old
+ new
@@ -62,18 +62,18 @@
def create(path, remote)
path = self.config.normalize_path(path)
FileUtils.mkdir_p(File.dirname(path))
system("git clone -q #{remote} #{path}") or raise "Unable to clone into #{path}"
self.add(path)
- say "Created & added path #{path} to doc list"
+ say "Created #{path} path for gitdoc"
end
desc "status", "Retrieve gitdocs status"
def status
say "GitDoc v#{VERSION}"
say "Running: #{self.running?}"
say "Watching paths:"
- say self.config.paths.map { |p| " - #{p}" }.join("\n")
+ say self.config.shares.map { |s| " - #{s.path}" }.join("\n")
end
desc "config", "Configuration options for gitdocs"
def config
# TODO make this work