Sha256: 56d7c094d98e9c839fc3189e18752767bbf00beae51ad331b8aee82695479582
Contents?: true
Size: 808 Bytes
Versions: 2
Compression:
Stored size: 808 Bytes
Contents
class Hyde class CLI module Helpers def say_info(str) say_status '*', str, 30 end def say_status(what, cmd, color=32) c1 = "\033[0;#{color}m" c0 = "\033[0;m" puts "#{c1}%10s#{c0} %s" % [ what, cmd ] end def no_project "No project file here." end def project @project ||= begin pass no_project unless @hydefile Dir.chdir File.dirname(@hydefile) begin project = Hyde::Project.new pass no_project unless project.config_file? rescue LegacyError err "This is a legacy Hyde project." err "To force it, try editing `hyde.conf` and upgrade the version line to `hyde_requirement: 0.1`." pass rescue VersionError => e err e.message pass end project end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hydeweb-0.1.1 | lib/hyde/cli/helpers.rb |
hydeweb-0.1.0 | lib/hyde/cli/helpers.rb |