This repository was archived by the owner on Oct 22, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +49
-53
lines changed
Expand file tree Collapse file tree 3 files changed +49
-53
lines changed Original file line number Diff line number Diff line change 1+ require 'colorize'
2+ require 'date'
3+ require 'json'
4+ require 'require_all'
5+ require 'time'
6+ require 'typhoeus'
7+ require 'zip'
8+
19wpxfbase = __FILE__
210
311while File . symlink? ( wpxfbase )
917$LOAD_PATH. unshift ( File . join ( app_path , 'lib' ) )
1018$LOAD_PATH. unshift ( File . join ( app_path , 'modules' ) )
1119
12- require 'colorize'
13- require 'date'
14- require 'json'
15- require 'require_all'
16- require 'time'
17- require 'typhoeus'
18- require 'zip'
19-
2020require 'wpxf/core'
2121require 'wpxf/utility/body_builder'
2222require 'wpxf/utility/text'
2323require 'wpxf/utility/reference_inflater'
24-
2524require_relative 'github_updater'
2625
27- module Wpxf
28- def self . data_directory = ( val )
29- @@data_directory = val
30- end
31-
32- def self . data_directory
33- @@data_directory
34- end
35-
36- def self . app_path = ( val )
37- @@app_path = val
38- end
39-
40- def self . app_path
41- @@app_path
42- end
43-
44- def self . change_stdout_sync ( enabled )
45- original_setting = STDOUT . sync
46- STDOUT . sync = true
47- yield ( enabled )
48- STDOUT . sync = original_setting
49- end
50- end
51-
5226Wpxf . app_path = app_path
5327Wpxf . data_directory = File . join ( app_path , 'data/' )
Original file line number Diff line number Diff line change 1- require 'wpxf/namespaces'
1+ # The root namespace.
2+ module Wpxf
3+ # The namespace for WordPress mixins and classes.
4+ module WordPress
5+ end
6+
7+ # The namespace for network related mixins and classes.
8+ module Net
9+ end
10+
11+ # The namespace for version generation mixins and classes.
12+ module Versioning
13+ end
14+
15+ # The namespace for utility classes and modules.
16+ module Utility
17+ end
18+
19+ def self . data_directory = ( val )
20+ @@data_directory = val
21+ end
22+
23+ def self . data_directory
24+ @@data_directory
25+ end
26+
27+ def self . app_path = ( val )
28+ @@app_path = val
29+ end
30+
31+ def self . app_path
32+ @@app_path
33+ end
34+
35+ def self . change_stdout_sync ( enabled )
36+ original_setting = STDOUT . sync
37+ STDOUT . sync = true
38+ yield ( enabled )
39+ STDOUT . sync = original_setting
40+ end
41+ end
242
343require 'wpxf/core/data_file'
444require 'wpxf/core/options'
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments