Executioner  executioner.rb

File Stats

Last Modified
Sun Oct 10 21:46:23 -0400 2010
Requires
  • executioner/errors
  • executioner/help
  • shellwords
  • shellwords

Method Index

[Validate]
Generated with RDazzle Newfish 1.4.0

Executioner

  class MyCLI < Executioner

    # cmd --debug

    def debug?
      $DEBUG
    end

    def debug=(bool)
      $DEBUG = bool
    end

    # $ foo remote

    class Remote < Executioner

      # $ foo remote --verbose

      def verbose?
        @verbose
      end

      def verbose=(bool)
        @verbose = bool
      end

      # $ foo remote --force

      def force?
        @force
      end

      def remote=(bool)
        @force = bool
      end

      # $ foo remote --output <path>

      def output=(path)
        @path = path
      end

      # $ foo remote -o <path>

      alias_method :o=, :output=

      # $ foo remote add

      class Add < self

        def main(name, branch)
          # ...
        end

      end

      # $ foo remote show

      class Show < self

        def main(name)
          # ...
        end

      end

    end

  end