Sha256: 37dab2ca2e00d8c990cc715b2914f3281c415346ad11d34fe29afef38f402571

Contents?: true

Size: 754 Bytes

Versions: 20

Compression:

Stored size: 754 Bytes

Contents

require 'cri'
require 'onceover/controlrepo'
require 'onceover/cli'
require 'onceover/runner'
require 'onceover/testconfig'
require 'onceover/logger'

class Onceover
  class CLI
    class Init
      def self.command
        @cmd ||= Cri::Command.define do
          name 'init'
          usage 'init'
          summary 'Sets up a controlrepo for testing from scratch'
          description <<-DESCRIPTION
This will generate all of the config files required for the onceover
tool to work.
          DESCRIPTION

          run do |opts, args, cmd|
            Onceover::Controlrepo.init(Onceover::Controlrepo.new(opts))
          end
        end
      end
    end
  end
end

# Register itself
Onceover::CLI.command.add_command(Onceover::CLI::Init.command)

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
onceover-3.2.5 lib/onceover/cli/init.rb
onceover-3.2.4 lib/onceover/cli/init.rb
onceover-3.2.3 lib/onceover/cli/init.rb
onceover-3.2.2 lib/onceover/cli/init.rb
onceover-3.2.1 lib/onceover/cli/init.rb
onceover-3.2.0 lib/onceover/cli/init.rb
onceover-3.1.1 lib/onceover/cli/init.rb
onceover-3.1.0 lib/onceover/cli/init.rb
onceover-3.0.11 lib/onceover/cli/init.rb
onceover-3.0.10 lib/onceover/cli/init.rb
onceover-3.0.9 lib/onceover/cli/init.rb
onceover-3.0.8 lib/onceover/cli/init.rb
onceover-3.0.7 lib/onceover/cli/init.rb
onceover-3.0.6 lib/onceover/cli/init.rb
onceover-3.0.5 lib/onceover/cli/init.rb
onceover-3.0.4 lib/onceover/cli/init.rb
onceover-3.0.3 lib/onceover/cli/init.rb
onceover-3.0.2 lib/onceover/cli/init.rb
onceover-3.0.1 lib/onceover/cli/init.rb
onceover-3.0.0 lib/onceover/cli/init.rb