Sha256: 0757507f7d05a5c69fe01652d4d21814413551e9ddb086a3e22ac20d8dc0fea2

Contents?: true

Size: 704 Bytes

Versions: 1

Compression:

Stored size: 704 Bytes

Contents

require 'forwardable'
module PGit
  class Command
    class Application
      extend Forwardable
      def_delegators :@current_project, :commands

      attr_reader :global_opts, :opts, :args, :current_project, :command
      def initialize(global_opts, opts, args)
        configuration = PGit::Configuration.new
        @current_project = PGit::CurrentProject.new(configuration)
        @global_opts = global_opts
        @command = PGit::Command.new(opts.fetch("name") { :no_name_provided },
                                     opts.fetch("steps") { [:no_steps_provided] },
                                     @current_project)
        @args = args
        @opts = opts
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pgit-1.0.0 lib/pgit/command/application.rb