Sha256: 55132a0a0e58dcf788cc4d6479e9496f9bc14892fe12e2734a34e82264af7b32

Contents?: true

Size: 1.52 KB

Versions: 2

Compression:

Stored size: 1.52 KB

Contents

# frozen_string_literal: true
#
# ronin-db - A common database library for managing and querying security data.
#
# Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
#
# ronin-db is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ronin-db is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with ronin-db.  If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/db/cli/command'
require 'ronin/db/config_file'

require 'command_kit/edit'

module Ronin
  module DB
    class CLI
      module Commands
        #
        # Manually edits the `~/.config/ronin-db/database.yml` configuration
        # file.
        #
        # ## Usage
        #
        #     ronin-db edit [options]
        #
        # ## Options
        #
        #     -h, --help                       Print help information
        #
        class Edit < Command

          include CommandKit::Edit

          description 'Manually edits the database.yml config'

          man_page 'ronin-db-edit.1'

          def run
            edit ConfigFile::PATH
          end

        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ronin-db-0.1.0.beta1-java lib/ronin/db/cli/commands/edit.rb
ronin-db-0.1.0.beta1 lib/ronin/db/cli/commands/edit.rb