lib/appinit.rb in forj-1.0.1 vs lib/appinit.rb in forj-1.0.2

- old
+ new

@@ -13,15 +13,15 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +require 'lorj' -# Base Logging system started and loaded. -require 'log.rb' # Load default loggers -include Logging - +# Module to initialize the application +# TODO: Cleanup about Global variables used. Should be replaced by PrcLib +# or other kind of setting. module AppInit def AppInit.forj_initialize() # Function to create FORJ paths if missing. @@ -43,10 +43,10 @@ FileUtils.chmod(0700, $FORJ_KEYPAIRS_PATH) AppInit.ensure_dir_exists($FORJ_CREDS_PATH) end def AppInit.ensure_dir_exists(path) - if not dir_exists?(path) + if not PrcLib.dir_exists?(path) FileUtils.mkpath(path) if not File.directory?(path) end end end