Sha256: 322e7e66e6f904ebf32dde7a1df5615ae9d62a938536a57e76ee43b90bedcfab
Contents?: true
Size: 674 Bytes
Versions: 1
Compression:
Stored size: 674 Bytes
Contents
module Stastic::Command class Publish < Base def index publish end private def publish puts "Detecting..." generator = Stastic::Generator.detect puts "Found: #{generator.desc}" puts "Building..." generator.build puts "Packaging..." archive_path = generator.package print "Uploading..." upload(archive_path) end def upload(archive_path) print "Uploading your archive...\n" reponse = with_valid_site do Stastic::Client.publish(Stastic::Config.site_id, archive_path) end puts "Complete\n" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stastic-0.2.0 | lib/stastic/commands/publish.rb |