Skip to content

Commit

Permalink
Renamed ronin-web new webapp to ronin-web new app.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Nov 18, 2023
1 parent 43207fe commit ca8990c
Show file tree
Hide file tree
Showing 16 changed files with 31 additions and 31 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,15 @@ $ ronin-web new server server.rb
Generate a new web app:

```shell
$ ronin-web new webapp app
mkdir app
mkdir app/lib
mkdir app/views
mkdir app/public
erb .ruby-version.erb app/.ruby-version
cp Gemfile app
erb app.rb.erb app/app.rb
cp config.ru app
$ ronin-web new app myapp
mkdir myapp
mkdir myapp/lib
mkdir myapp/views
mkdir myapp/public
erb .ruby-version.erb myapp/.ruby-version
cp Gemfile myapp
erb app.rb.erb myapp/app.rb
cp config.ru myapp
```

Open the Ronin Web Ruby REPL:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions lib/ronin/web/cli/commands/new.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module Commands
#
# ## Usage
#
# ronin-web new {nokogiri | server | spider | webapp}
# ronin-web new {nokogiri | server | app | spider}
#
# ## Options
#
Expand All @@ -42,11 +42,11 @@ module Commands
#
# ## Commands
#
# app
# help
# nokogiri
# server
# spider
# webapp
#
class New < Command

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ class CLI
module Commands
class New < Command
#
# Generate a new ronin-web-server based webapp.
# Generate a new ronin-web-server based web app.
#
# ## Usage
#
# ronin-web new webapp [options] DIR
# ronin-web new app [options] DIR
#
# ## Options
#
Expand All @@ -45,11 +45,11 @@ class New < Command
#
# DIR The directory to create
#
class Webapp < Command
class App < Command

include Core::CLI::Generator

template_dir File.join(ROOT,'data','new','webapp')
template_dir File.join(ROOT,'data','new','app')

usage '[options] DIR'

Expand All @@ -75,12 +75,12 @@ class Webapp < Command
argument :dir, required: true,
desc: 'The directory to create'

description 'Generate a new ronin-web-server based webapp'
description 'Generate a new ronin-web-server based app'

man_page 'ronin-web-new-webapp.1'
man_page 'ronin-web-new-app.1'

#
# Runs the `ronin-web new webapp` command.
# Runs the `ronin-web new app` command.
#
# @param [String] path
# The path to the new project directory to create.
Expand Down
8 changes: 4 additions & 4 deletions man/ronin-web-new-webapp.1.md → man/ronin-web-new-app.1.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# ronin-web-new-webapp 1 "May 2022" Ronin "User Manuals"
# ronin-web-new-app 1 "May 2022" Ronin "User Manuals"

## SYNOPSIS

`ronin-web new webapp` [*options*] [*DIR*]
`ronin-web new app` [*options*] [*DIR*]

## DESCRIPTION

Generates a new `ronin-web-server` based webapp.
Generates a new `ronin-web-server` based web app.

## ARGUMENTS

Expand All @@ -16,7 +16,7 @@ Generates a new `ronin-web-server` based webapp.
## OPTIONS

`--port` *PORT*
The port the webapp will listen on by default. Defaults to `3000`.
The port the app will listen on by default. Defaults to `3000`.

`--ruby-version` *VERSION*
The desired ruby version for the project Defaults to the current ruby version.
Expand Down
2 changes: 1 addition & 1 deletion man/ronin-web-new-nokogiri.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ Postmodern <[email protected]>

## SEE ALSO

ronin-web-new-server(1) ronin-web-new-spider(1) ronin-web-new-webapp(1)
ronin-web-new-server(1) ronin-web-new-spider(1) ronin-web-new-app(1)
2 changes: 1 addition & 1 deletion man/ronin-web-new-server.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ Postmodern <[email protected]>

## SEE ALSO

ronin-web-new-nokogiri(1) ronin-web-new-spider(1) ronin-web-new-webapp(1)
ronin-web-new-nokogiri(1) ronin-web-new-spider(1) ronin-web-new-app(1)
2 changes: 1 addition & 1 deletion man/ronin-web-new-spider.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,4 @@ Postmodern <[email protected]>

## SEE ALSO

ronin-web-new-nokogiri(1) ronin-web-new-server(1) ronin-web-new-webapp(1)
ronin-web-new-nokogiri(1) ronin-web-new-server(1) ronin-web-new-app(1)
8 changes: 4 additions & 4 deletions man/ronin-web-new.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ Creates a new web server, spider, or nokogiri script.
*server*
Generates a new `ronin-web-server` Ruby script.

*app*
Generate a new `ronin-web-server` based app.

*spider*
Generates a new `ronin-web-spider` Ruby script.

*webapp*
Generate a new `ronin-web-server` based webapp.

*help*
Lists available `ronin new` commands.

Expand All @@ -41,4 +41,4 @@ Postmodern <[email protected]>

## SEE ALSO

ronin-web-new-nokogiri(1) ronin-web-new-server(1) ronin-web-new-spider(1) ronin-web-new-webapp(1)
ronin-web-new-nokogiri(1) ronin-web-new-server(1) ronin-web-new-spider(1) ronin-web-new-app(1)
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'spec_helper'
require 'ronin/web/cli/commands/new/webapp'
require 'ronin/web/cli/commands/new/app'
require_relative '../man_page_example'

describe Ronin::Web::CLI::Commands::New::Webapp do
describe Ronin::Web::CLI::Commands::New::App do
include_examples "man_page"
end

0 comments on commit ca8990c

Please sign in to comment.