Class: Yuyi

Inherits:
Object
  • Object
show all
Extended by:
Dsl, Ui
Defined in:
lib/yuyi.rb,
lib/yuyi.rb

Defined Under Namespace

Modules: Dsl, Ui Classes: Cli, Menu, Roll, Source

Constant Summary collapse

NAME =
'Yuyi'
VERSION =
YAML.load(File.read(File.dirname(__FILE__) + '/../.new'))['version']
DEFAULT_MENU =
File.expand_path('~/yuyi_menu')

Instance Attribute Summary

Attributes included from Dsl

#menu_path, #upgrade, #verbose

Class Method Summary collapse

Methods included from Dsl

ask, command?, delete_from_file, osx_version, run, say, write_to_file

Methods included from Ui

authenticate, confirm_options, header, present_options

Class Method Details

.startObject



18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/yuyi.rb', line 18

def self.start
  header

  Yuyi::Menu.new menu_path

  # confirm with user
  confirm_options
  authenticate

  # order
  Yuyi::Menu.order
end