Top Level Namespace

Defined Under Namespace

Modules: Bukkit

Instance Method Summary collapse

Instance Method Details

#ask_websiteObject



46
47
48
49
50
51
52
# File 'lib/bukkit/install.rb', line 46

def ask_website
  if ARGV.include? "--website"
    Bukkit.website($opt2)
  elsif ARGV.include? "-w"
    Bukkit.website($opt2)
  end
end

#create_folderObject



34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/bukkit/new.rb', line 34

def create_folder
  opt2 = ARGV[1]
  if opt2.nil?
    abort("  Server name not specified.\n  USAGE: 'bukkit new SERVERNAME'")
  else
    begin
      Dir.mkdir(opt2.to_s)
      Dir.chdir(opt2.to_s)
    rescue Errno::EEXIST
      abort("  Directory already exists. Try a different name.")
    end
  end
end