module Automatic
- Name
-
Automatic::Ruby
- Author
-
774 <id774.net>
- Created
-
Feb 18, 2012
- Updated
-
Feb 21, 2014
- Copyright
-
Copyright © 2012-2014
Automatic
Ruby Developers. - License
-
Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0.
- Name
- Author
-
774 <id774.net>
- Created
-
Feb 21, 2014
- Updated
-
Feb 26, 2014
- Copyright
-
Copyright © 2012-2014
Automatic
Ruby Developers. - License
-
Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0.
Constants
- USER_DIR
- VERSION
Attributes
root_dir[RW]
Public Class Methods
config_dir()
click to toggle source
# File lib/automatic.rb, line 32 def config_dir File.join(@root_dir, "config") end
plugins_dir()
click to toggle source
# File lib/automatic.rb, line 28 def plugins_dir File.join(@root_dir, "plugins") end
run(args = { })
click to toggle source
# File lib/automatic.rb, line 22 def run(args = { }) self.root_dir = args[:root_dir] self.user_dir = args[:user_dir] Automatic::Pipeline.run(args[:recipe]) end
user_dir()
click to toggle source
# File lib/automatic.rb, line 36 def user_dir @user_dir end
user_dir=(_user_dir)
click to toggle source
# File lib/automatic.rb, line 40 def user_dir=(_user_dir) if ENV["AUTOMATIC_RUBY_ENV"] == "test" && !(_user_dir.nil?) @user_dir = _user_dir else @user_dir = File.expand_path("~/") + USER_DIR end end
user_plugins_dir()
click to toggle source
# File lib/automatic.rb, line 48 def user_plugins_dir File.join(@user_dir, "plugins") end