bukkit 0.1.4 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28cb8d634661578cf277b6fc98310b33d3cfa09f
4
- data.tar.gz: 78c6d26768e07272475313a00d1047f30f4fa1c5
3
+ metadata.gz: e7ced55fac2997afa5877dd165625d82bca1f8d1
4
+ data.tar.gz: 36590a981aa62acd61f28e0cf23d37b59e6b1e7a
5
5
  SHA512:
6
- metadata.gz: 9f607ffc2ff9803d38f69f652d8ec8211cae91d345e5c8b024bf1871ff017055fe703410011d24b9c221025827458639c48cbaa47b3df0afc4b248f576b0bbcd
7
- data.tar.gz: 1535f425f630dfe2f6cf43db46fd1247e968dad1ea41d89404bf8f7cf8ab02f1692c23d11d4f5f5e82dc869669e6296c85cfc4b78cae1c88c3b1b177de75ad0e
6
+ metadata.gz: 5e39dddb56387717c3d715d225264d51a5cc7290df1c64ee733f7bda26d630438f4f1e7e3682b06700397fd5e53c6071cacbafbef2809faaccb309d15e61dee5
7
+ data.tar.gz: 447d45871aae6430387cd021edbc195d057c6e75f288ba1102bddde54ee02aaf5f1fb952419d69322686ed89c0121e0f6cbca7438791bee6f9504582bc1920fe
data/CHANGELOG CHANGED
@@ -2,4 +2,5 @@ v0.1.0: Added 'update' command and a few bug fixes.
2
2
  v0.1.1: Major bug fix.
3
3
  v0.1.2: 'website' command fixed.
4
4
  v0.1.3: Minor bug fixes.
5
- v0.1.4: Much better documentation.
5
+ v0.1.4: Much better documentation.
6
+ v1.0.0: Total revamp of the CLI and docs. Definitely v1.0.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- bukkit
1
+ Bukkit-CLI
2
2
  ======
3
3
 
4
4
  A command line wrapper for CraftBukkit.
@@ -12,19 +12,25 @@ A command line wrapper for CraftBukkit.
12
12
  ```
13
13
 
14
14
  ###Commands:
15
- `bukkit new my-awesome-server-name` Creates a new server.
15
+ __To View Command Options run:__ `bukkit [command] [options: --help, -h]`
16
16
 
17
- `bukkit start` Starts up your server. Must be run in the server's root directory.
17
+ `bukkit [--help, -h]` Display global help.
18
18
 
19
- `bukkit install pluginname` Installs a new plugin. As long as it is on [dev.bukkit.org](http://dev.bukkit.org/).
19
+ `bukkit install` Install a new bukkit plugin.
20
20
 
21
- `bukkit website pluginname` Opens the website of a plugin.
21
+ `bukkit new my-awesome-server-name [options: --rb, --beta, --dev]` Create a new Bukkit server.
22
22
 
23
- `bukkit update` Get's latest version of CraftBukkit.
23
+ `bukkit start` Start your server.
24
24
 
25
- `bukkit [-[-h]elp]` Displays help for commands.
25
+ `bukkit update [options: --rb, --beta, --dev]` Download the latest version of CraftBukkit.
26
26
 
27
- `bukkit [-[-v]ersion]` Gives current Bukkit CLI version
27
+ `bukkit website my-favorite-plugin [options: --url (just show url, don't open)]` Visit a plugin's website.
28
28
 
29
29
  ###Prerequisites:
30
30
 
31
+ * [Ruby](https://www.ruby-lang.org/en/downloads/) ([RVM](http://rvm.io/) - for Linux/Mac and [RubyInstaller](http://rubyinstaller.org/) - Windows)
32
+ * `2.0.0` (recommended!)
33
+ * `1.9.3` (go right ahead)
34
+ * `other versions` (may or may not work, if you find a bug though [report it!](https://github.com/JesseHerrick/bukkit/issues/new))
35
+ * [Java](http://java.com/en/download/manual.jsp)
36
+ * All Versions Allowed by [Bukkit](https://github.com/Bukkit/Bukkit).
data/bin/bukkit CHANGED
@@ -2,4 +2,133 @@
2
2
 
3
3
  $: << File.expand_path(File.dirname(__FILE__) + "/../lib")
4
4
 
5
- require 'bukkit.rb'
5
+ require 'rubygems'
6
+ require 'commander/import'
7
+
8
+ require 'bukkit.rb'
9
+
10
+ program :version, Bukkit::VERSION
11
+ program :description, "A Command Line Interface for CraftBukkit."
12
+
13
+ command :new do |c|
14
+ c.syntax = "bukkit new my-awesome-server-name [options]"
15
+ c.summary = "Create a new Bukkit server."
16
+ c.description = "Create a new Bukkit server with the given name."
17
+ c.example "Creates a new server with the name 'my-awesome-server-name'.", "bukkit new my-awesome-server-name"
18
+ c.option "--rb", "Create a new server with the recommended build."
19
+ c.option "--beta", "Create a new server with the beta build."
20
+ c.option "--dev", "Create a new server with the dev build."
21
+ # TODO: Those are bools, pass the t/f values to a case statement then pass that to Bukkit::new
22
+ c.action do |args, options|
23
+ # Make 'dir' = to first arg
24
+ dir = args.shift
25
+
26
+ if options.rb == true
27
+ build = "rb"
28
+ elsif options.beta == true
29
+ build = "beta"
30
+ elsif options.dev == true
31
+ build = "dev"
32
+ else
33
+ build = ask "What build would you like? (rb/beta/dev)"
34
+ case build.downcase
35
+ when "rb", "recommended", "r"
36
+ build = "rb"
37
+ when "beta", "b"
38
+ build = "beta"
39
+ when "dev", "d", "developer"
40
+ build = "dev"
41
+ else
42
+ abort "ERROR: Invalid option '#{build}'\nTry `bukkit new --help`"
43
+ end
44
+ end
45
+ begin
46
+ Bukkit::new(build, dir)
47
+ rescue TypeError
48
+ abort "ERROR: Server name not specified.\nTry `bukkit new --help`"
49
+ end
50
+ end
51
+ end
52
+
53
+ command :start do |c|
54
+ c.syntax = "bukkit start"
55
+ c.summary = "Start your server."
56
+ c.description = "Start the bukkit server. (Must be in server's root)"
57
+ c.example "Start your server.", "bukkit start"
58
+ c.action do |args, options|
59
+ puts "Starting the server!"
60
+ end
61
+ end
62
+
63
+ command :install do |c|
64
+ c.syntax = "bukkit install my-favorite-plugin [options]"
65
+ c.summary = "Install a new bukkit plugin."
66
+ c.description = "Installs a new bukkit plugin. Must be on dev.bukkit.org. (can also be a zip!)"
67
+
68
+ c.example "Installs the plugin 'my-favorite-plugin' (will ask for website when done).", "bukkit install my-favorite-plugin"
69
+
70
+ c.example "Installs the plugin 'my-favorite-plugin' and doesn't ask to open it's website", "bukkit install my-favorite-plugin --nowebsite"
71
+ c.option "--nowebsite", "Doesn't ask for website after install."
72
+
73
+ c.action do |args, options|
74
+ if options.nowebsite == true
75
+ Bukkit::Install.normal(args.shift, true)
76
+ else
77
+ Bukkit::Install.normal(args.shift)
78
+ end
79
+ end
80
+ end
81
+
82
+ command :website do |c|
83
+ c.syntax = "bukkit website my-favorite-plugin"
84
+ c.summary = "Open a plugin's website."
85
+ c.description = "Opens a plugin's website your default browser."
86
+ c.example "Open a plugin's website.", "bukkit website my-favorite-plugin"
87
+ c.option "-u", "--url", "Only show the url."
88
+ c.action do |args, options|
89
+ plugin = args.shift.downcase
90
+ if options.url == true
91
+ Bukkit.url(plugin)
92
+ else
93
+ Bukkit.website(plugin)
94
+ end
95
+ end
96
+ end
97
+
98
+ command :update do |c|
99
+ c.syntax = "bukkit update [options]"
100
+ c.summary = "Get the latest version of bukkit."
101
+ c.description = "Download the latest version of CraftBukkit."
102
+ c.example "Updates your server to the latest recommended build.", "bukkit update --rb"
103
+ c.option "--rb", "Get the latest recommended build."
104
+ c.option "--beta", "Get the latest beta build."
105
+ c.option "--dev", "Get the latest dev build."
106
+ # TODO: Those are bools, pass the t/f values to a case statement then pass that to Bukkit::new
107
+ c.action do |args, options|
108
+ if options.rb == true
109
+ build = "rb"
110
+ elsif options.beta == true
111
+ build = "beta"
112
+ elsif options.dev == true
113
+ build = "dev"
114
+ else
115
+ build = ask "What build would you like? (rb/beta/dev)"
116
+ case build.downcase
117
+ when "rb", "recommended", "r"
118
+ build = "rb"
119
+ when "beta", "b"
120
+ build = "beta"
121
+ when "dev", "d", "developer"
122
+ build = "dev"
123
+ else
124
+ abort "ERROR: Invalid option '#{build}'\nTry `bukkit new --help`"
125
+ end
126
+ end
127
+ # Send args & opts to Bukkit::update
128
+ begin
129
+ Bukkit::update(build)
130
+ rescue
131
+ abort "ERROR: Something bad happened!.\nTry `bukkit new --help`\n If error persists create an issue with specific details here:\n https://github.com/JesseHerrick/bukkit/issues/new"
132
+ end
133
+ end
134
+ end
data/bukkit.gemspec CHANGED
@@ -21,4 +21,5 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency('json')
22
22
  spec.add_dependency('archive-zip')
23
23
  spec.add_dependency('launchy')
24
+ spec.add_dependency('commander')
24
25
  end
data/lib/bukkit.rb CHANGED
@@ -1,42 +1,11 @@
1
1
  # Orderly and Alphabetical Require Statements
2
2
  require 'rubygems'
3
3
 
4
+ require 'bukkit/check'
4
5
  require 'bukkit/download'
5
- require 'bukkit/help'
6
6
  require 'bukkit/install'
7
7
  require 'bukkit/new'
8
8
  require 'bukkit/start'
9
9
  require 'bukkit/update'
10
10
  require 'bukkit/version'
11
- require 'bukkit/website'
12
-
13
- module Bukkit
14
- opt1 = ARGV[0]
15
-
16
- # First arg control flow
17
- case opt1
18
- when "-v", "--version", "version", "v"
19
- puts Bukkit::VERSION_FULL
20
- when "-h", "--help", "help", "h"
21
- Bukkit::Help.all
22
- when "new"
23
- Bukkit::new
24
- when "start"
25
- Bukkit::start
26
- when "install"
27
- Bukkit::install
28
- when "website"
29
- Bukkit::website(ARGV[1].downcase)
30
- when "update"
31
- Bukkit::update
32
- else
33
- if opt1.nil?
34
- puts "You didn't enter a command.\n"
35
- Bukkit::Help.all
36
- else
37
- puts "'#{opt1}' is not a command."
38
- puts "Run 'bukkit --help' for a list of commands."
39
- Bukkit::Help.all
40
- end
41
- end
42
- end
11
+ require 'bukkit/website'
@@ -0,0 +1,11 @@
1
+ module Bukkit
2
+ class Check
3
+ def self.root?
4
+ if File.exists? "craftbukkit.jar"
5
+ true
6
+ else
7
+ false
8
+ end
9
+ end
10
+ end
11
+ end
@@ -7,8 +7,7 @@ module Bukkit
7
7
  file.write open("#{uri}").read
8
8
  end
9
9
  rescue Errno::ENOENT
10
- Bukkit::Help.download
11
- abort "Error! No internet connection."
10
+ abort "ERROR: No internet connection."
12
11
  end
13
12
  end
14
13
  end
@@ -4,21 +4,31 @@ require 'archive/zip'
4
4
  require 'launchy'
5
5
 
6
6
  module Bukkit
7
- def self.install
8
- $opt2 = ARGV[1].downcase
9
- abort(Bukkit::Help.install) if $opt2.nil?
10
- begin
11
- plugins_api = JSON.parse(open("http://api.bukget.org/3/plugins/bukkit/#{$opt2}").read)
12
- website = plugins_api["website"]
7
+ class Install
8
+ def self.normal(plugin, nowebsite = false)
9
+ # Check if in root
10
+ abort "ERROR: Not in server's root directory.\nTry `bukkit new my-awesome-server-name`." if Bukkit::Check.root? == false
11
+
12
+ # BukGet API for Plugin Installs
13
+ plugins_api = JSON.parse(open("http://api.bukget.org/3/plugins/bukkit/#{plugin}").read)
14
+ # Get Plugin's Website
15
+ @@website = plugins_api["website"]
16
+ # Get Plugin's Download Link
13
17
  download = plugins_api["versions"][0]["download"]
18
+ # Get Plugin's Filename
14
19
  filename = plugins_api["versions"][0]["filename"]
20
+ # Switch to plugins dir
21
+ plugin = plugin.downcase
15
22
  Dir.chdir("plugins")
16
- puts "Downloading #{$opt2} from #{website}..."
23
+ puts "Downloading #{plugin} from #{@@website}..."
24
+ # Download File from dev.bukkit.org
17
25
  Bukkit::download(filename, download)
26
+
27
+ # Unzip if it's a zip
18
28
  if File.extname(filename) == ".zip"
19
29
  # Extract Zip Archive
20
- Archive::Zip.extract(filename, $opt2)
21
- Dir.chdir($opt2)
30
+ Archive::Zip.extract(filename, plugin)
31
+ Dir.chdir(plugin)
22
32
  jarfiles = Dir.glob("*.jar")
23
33
  # Move each jar file outside the folder.
24
34
  jarfiles.each do |jar|
@@ -26,27 +36,31 @@ module Bukkit
26
36
  end
27
37
  Dir.chdir("../")
28
38
  # Delete the extracted folder.
29
- %x(rm -rf #{$opt2}/)
39
+ %x(rm -rf #{plugin}/)
30
40
  # Delete the archive.
31
41
  %x(rm #{filename})
32
- puts "Plugin successfully installed!"
33
- ask_website
42
+
43
+ puts "#{plugin.capitalize!} successfully installed!"
44
+
45
+ if nowebsite == false
46
+ website?
47
+ end
34
48
  else
35
- puts "Plugin successfully installed!"
36
- ask_website
49
+ if nowebsite == true
50
+ abort
51
+ else
52
+ website?
53
+ end
37
54
  end
38
- rescue Errno::ENOENT
39
- puts " You aren't in a server's root directory.\n 'plugins' directory not found."
40
- rescue
41
- puts " Plugin not found."
42
55
  end
43
- end
44
- end
45
56
 
46
- def ask_website
47
- if ARGV.include? "--website"
48
- Bukkit.website($opt2)
49
- elsif ARGV.include? "-w"
50
- Bukkit.website($opt2)
57
+ def self.website?
58
+ website_yn = agree "Would you like to visit it's website? (yes/no)"
59
+
60
+ if website_yn == true
61
+ puts "Launching website!"
62
+ Launchy.open(@@website)
63
+ end
64
+ end
51
65
  end
52
66
  end
data/lib/bukkit/new.rb CHANGED
@@ -1,48 +1,30 @@
1
1
  module Bukkit
2
- def self.new
3
- create_folder
4
- puts " Do want the recommended build, beta build, or dev build?"
5
- print " rb, beta, dev? "
6
- q1 = $stdin.gets.chomp
2
+ # N2K: http://cbukk.it/craftbukkit.jar http://cbukk.it/craftbukkit-beta.jar http://cbukk.it/craftbukkit-dev.jar
3
+ def self.new(build, dir)
4
+ # Create a Folder for the Server
5
+ begin
6
+ Dir.mkdir(dir)
7
+ Dir.chdir(dir)
8
+ rescue Errno::EEXIST
9
+ abort("ERROR: Directory already exists. Try a different name.")
10
+ end
7
11
 
8
- case q1
9
- when "rb", "recommended", "r"
10
- puts "Downloading CraftBukkit Recommended build... (this could take a minute)\n"
12
+ case build
13
+ when "rb"
14
+ # Download Recommended Build
15
+ say "Downloading Recommended Build... (this may take a while)"
11
16
  Bukkit::download("craftbukkit.jar", "http://cbukk.it/craftbukkit.jar")
12
- puts "\nSuccessfully downloaded Recommended build."
13
- Bukkit::start
14
- when "beta", "b"
15
- puts "Downloading CraftBukkit Beta build... (this could take a minute)\n"
17
+ when "beta"
18
+ # Download Beta Build
19
+ say "Downloading Beta Build... (this may take a while)"
16
20
  Bukkit::download("craftbukkit.jar", "http://cbukk.it/craftbukkit-beta.jar")
17
- puts "\nSuccessfully downloaded Beta build."
18
- Bukkit::start
19
- when "dev", "development", "d"
20
- puts "Downloading CraftBukkit Development build... (this could take a minute)\n"
21
+ when "dev"
22
+ # Download Developer Build
23
+ say "Downloading Developer Build... (this may take a while)"
21
24
  Bukkit::download("craftbukkit.jar", "http://cbukk.it/craftbukkit-dev.jar")
22
- puts "\nSuccessfully downloaded Development build."
23
- Bukkit::start
24
- else
25
- if q1.length > 0
26
- Bukkit::Help.new
27
- abort(" \"#{q1}\" is not an option.")
28
- else
29
- Bukkit::Help.new
30
- abort(" You didn't enter an option.")
31
- end
32
25
  end
33
- end
34
- end
35
26
 
36
- def create_folder
37
- opt2 = ARGV[1]
38
- if opt2.nil?
39
- abort(" Server name not specified.\n USAGE: 'bukkit new SERVERNAME'")
40
- else
41
- begin
42
- Dir.mkdir(opt2.to_s)
43
- Dir.chdir(opt2.to_s)
44
- rescue Errno::EEXIST
45
- abort(" Directory already exists. Try a different name.")
46
- end
27
+ # Start the Server
28
+ Bukkit.start
47
29
  end
48
30
  end
data/lib/bukkit/start.rb CHANGED
@@ -1,14 +1,6 @@
1
1
  module Bukkit
2
2
  def self.start
3
- if ARGV.include? "-s"
4
- abort
5
- elsif ARGV.include? "-s"
6
- abort
7
- else
8
- puts "Make sure that you're in your server's root directory."
9
- puts "If Java runtime is not present, run 'bukkit start' once Java is installed to complete the installation."
10
- system 'java -jar craftbukkit.jar'
11
- Bukkit::Help.start
12
- end
3
+ abort "ERROR: You aren't in your server's root directory." if Bukkit::Check.root? == false
4
+ system 'java -jar craftbukkit.jar'
13
5
  end
14
6
  end
data/lib/bukkit/update.rb CHANGED
@@ -1,33 +1,19 @@
1
1
  module Bukkit
2
- def self.update
3
- begin
4
- puts " Do want the recommended build, beta build, or dev build?"
5
- print " rb, beta, dev? "
6
- q1 = $stdin.gets.chomp
7
-
8
- case q1
9
- when "rb", "recommended", "r"
10
- puts "Downloading CraftBukkit Recommended build... (this could take a minute)\n"
11
- Bukkit::download("craftbukkit.jar", "http://cbukk.it/craftbukkit.jar")
12
- puts "\nSuccessfully updated."
13
- when "beta", "b"
14
- puts "Downloading CraftBukkit Beta build... (this could take a minute)\n"
15
- Bukkit::download("craftbukkit.jar", "http://cbukk.it/craftbukkit-beta.jar")
16
- puts "\nSuccessfully updated."
17
- when "dev", "development", "d"
18
- puts "Downloading CraftBukkit Development build... (this could take a minute)\n"
19
- Bukkit::download("craftbukkit.jar", "http://cbukk.it/craftbukkit-dev.jar")
20
- puts "\nSuccessfully updated."
21
- else
22
- if q1.length > 0
23
- abort(" \"#{q1}\" is not an option.")
24
- else
25
- abort(" You didn't enter an option.")
26
- end
27
- end
28
- rescue
29
- puts "Uh oh! Something failed. Please report what you were doing at the time of this bug, and any other info you have at: https://github.com/JesseHerrick/bukkit/issues/new"
30
- Bukkit::Help.update
2
+ def self.update(build)
3
+ # Get build url.
4
+ case build
5
+ when "rb"
6
+ # Download the Latest Recommended Build
7
+ say "Downloading Recommended Build... (this may take a while)"
8
+ Bukkit::download("craftbukkit.jar", "http://cbukk.it/craftbukkit.jar")
9
+ when "beta"
10
+ # Download the Latest Beta Build
11
+ say "Downloading Beta Build... (this may take a while)"
12
+ Bukkit::download("craftbukkit.jar", "http://cbukk.it/craftbukkit-beta.jar")
13
+ when "dev"
14
+ # Download the Latest Developer Build
15
+ say "Downloading Developer Build... (this may take a while)"
16
+ Bukkit::download("craftbukkit.jar", "http://cbukk.it/craftbukkit-dev.jar")
31
17
  end
32
18
  end
33
19
  end
@@ -1,4 +1,4 @@
1
1
  module Bukkit
2
- VERSION = "0.1.4"
2
+ VERSION = "1.0.1"
3
3
  VERSION_FULL = "Bukkit-CLI v#{VERSION}"
4
4
  end
@@ -3,15 +3,24 @@ require 'json'
3
3
  require 'launchy'
4
4
 
5
5
  module Bukkit
6
- def self.website(plugin_name)
7
- begin
8
- plugins_api = JSON.parse(open("http://api.bukget.org/3/plugins/bukkit/#{plugin_name}").read)
9
- website = plugins_api["website"]
10
- puts "Opening #{plugin_name}'s website in your default browser."
11
- Launchy.open(website)
12
- rescue OpenURI::HTTPError
13
- puts " Plugin not found.\n Make sure you have the name correct."
14
- Bukkit::Help.website
15
- end
16
- end
17
- end
6
+ def self.website(plugin)
7
+ begin
8
+ plugins_api = JSON.parse(open("http://api.bukget.org/3/plugins/bukkit/#{plugin}").read)
9
+ website = plugins_api["website"]
10
+ puts "Opening the plugin's website in your default browser..."
11
+ Launchy.open(website)
12
+ rescue OpenURI::HTTPError
13
+ puts "ERROR: Plugin not found.\nMake sure you have the name correct.\nTry `bukkit website --help`"
14
+ Bukkit::Help.website
15
+ rescue
16
+ puts "ERROR: Plugin name is undefined."
17
+ end
18
+ end
19
+
20
+ def self.url(plugin)
21
+ plugins_api = JSON.parse(open("http://api.bukget.org/3/plugins/bukkit/#{plugin}").read)
22
+ website = plugins_api["website"]
23
+ say "\n#{plugin}'s website URL is #{website}."
24
+ puts ""
25
+ end
26
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bukkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Herrick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-12 00:00:00.000000000 Z
11
+ date: 2013-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: commander
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  description: A command line wrapper for CraftBukkit.
56
70
  email:
57
71
  - school@jessegrant.net
@@ -67,8 +81,8 @@ files:
67
81
  - bin/bukkit
68
82
  - bukkit.gemspec
69
83
  - lib/bukkit.rb
84
+ - lib/bukkit/check.rb
70
85
  - lib/bukkit/download.rb
71
- - lib/bukkit/help.rb
72
86
  - lib/bukkit/install.rb
73
87
  - lib/bukkit/new.rb
74
88
  - lib/bukkit/start.rb
data/lib/bukkit/help.rb DELETED
@@ -1,51 +0,0 @@
1
- module Bukkit
2
- class Help
3
-
4
- # All Help Commands
5
-
6
- def self.all
7
- puts "Usage: bukkit COMMAND [OPTIONS]"
8
- puts ""
9
- puts "COMMANDS:"
10
-
11
- new
12
- start
13
- install
14
- website
15
- update
16
- help
17
- version
18
- end
19
-
20
- # Individual Help Commands
21
-
22
- def self.new
23
- puts " USAGE: bukkit new my-awesome-server-name"
24
- puts " Creates a new server."
25
- end
26
- def self.start
27
- puts " USAGE: bukkit start"
28
- puts " Starts up your server. Must be run in the server's root directory."
29
- end
30
- def self.install
31
- puts " USAGE: bukkit install pluginname"
32
- puts " Installs a new plugin. As long as it is on http://dev.bukkit.org."
33
- end
34
- def self.website
35
- puts " USAGE: bukkit website pluginname"
36
- puts " Opens the website of a plugin."
37
- end
38
- def self.update
39
- puts " USAGE: bukkit update"
40
- puts " Get's latest version of CraftBukkit."
41
- end
42
- def self.help
43
- puts " USAGE: bukkit [-[-h]elp]"
44
- puts " Displays help for commands."
45
- end
46
- def self.version
47
- puts " USAGE: bukkit [-[-v]ersion]"
48
- puts " Gives current Bukkit CLI version"
49
- end
50
- end
51
- end