Skip to content

Commit

Permalink
Also create the recon/ and brute/ directories within the new repo…
Browse files Browse the repository at this point in the history
… dir.
  • Loading branch information
postmodern committed Apr 14, 2024
1 parent b8285d5 commit a6a081f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ronin/repos/cli/commands/new.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def run(path)
mkdir path
mkdir File.join(path,'exploits')
mkdir File.join(path,'payloads')
mkdir File.join(path,'recon')
mkdir File.join(path,'brute')
erb 'README.md.erb', File.join(path,'README.md')

Dir.chdir(path) do
Expand Down
8 changes: 8 additions & 0 deletions spec/cli/commands/new_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@
expect(File.directory?(File.join(@path,'payloads'))).to be(true)
end

it "must create the recon/ directory within the repo directory" do
expect(File.directory?(File.join(@path,'recon'))).to be(true)
end

it "must create the brute/ directory within the repo directory" do
expect(File.directory?(File.join(@path,'brute'))).to be(true)
end

it "must create a git repository within the directory" do
expect(File.directory?(File.join(@path,'.git'))).to be(true)
end
Expand Down

0 comments on commit a6a081f

Please sign in to comment.