Sha256: e6bda673aa5dd88ed99845697ad2e0b47cedc00d7969a07361d37e4d50bf8942

Contents?: true

Size: 990 Bytes

Versions: 17

Compression:

Stored size: 990 Bytes

Contents

module Takelage

  # takelage info project
  class InfoProject < SubCommandBase

    include LoggingModule
    include SystemModule
    include ConfigModule
    include ProjectModule

    #
    # info project active
    #
    desc 'active', 'Print active project info'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Print active project info
    LONGDESC
    # Print active project info.
    def active
      say hash_to_yaml(project.active)
    end

    #
    # info project private
    #
    desc 'private', 'Print private project info'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Print private project info
    LONGDESC
    # Print private project info.
    def private
      say hash_to_yaml(project.private)
    end

    #
    # info project main
    #
    desc 'main', 'Print main project info'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Print main project info
    LONGDESC
    # Print main project info.
    def main
      say hash_to_yaml(project.main)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
takelage-0.5.1 lib/takelage/info/project/cli.rb
takelage-0.5.0 lib/takelage/info/project/cli.rb
takelage-0.4.5 lib/takelage/info/project/cli.rb
takelage-0.4.4 lib/takelage/info/project/cli.rb
takelage-0.4.3 lib/takelage/info/project/cli.rb
takelage-0.4.2 lib/takelage/info/project/cli.rb
takelage-0.4.1 lib/takelage/info/project/cli.rb
takelage-0.4.0 lib/takelage/info/project/cli.rb
takelage-0.3.0 lib/takelage/info/project/cli.rb
takelage-0.2.1 lib/takelage/info/project/cli.rb
takelage-0.2.0 lib/takelage/info/project/cli.rb
takelage-0.1.5 lib/takelage/info/project/cli.rb
takelage-0.1.4 lib/takelage/info/project/cli.rb
takelage-0.1.3 lib/takelage/info/project/cli.rb
takelage-0.1.2 lib/takelage/info/project/cli.rb
takelage-0.1.1 lib/takelage/info/project/cli.rb
takelage-0.1.0 lib/takelage/info/project/cli.rb