Coder Social home page Coder Social logo

ry_safe's People

Contributors

dsiw avatar

Watchers

 avatar  avatar  avatar  avatar

ry_safe's Issues

Backup and Restore

Backup and restore each created file like tree.yaml or config.yaml.
This is important if ruby's std-lib have changed its behavior or something went wrong.

Which frequency should be used? Each day or week?

Creating commands via DSL

Instead of writing a new class of Command::Base for each new command, it should be possible to add a new command via a nice and easy DSL like:

command :exit do |name|
  action do |arguments|
    # action if exit was typed in console
  end

  help_summary "This is the help summary for command exit"

  man_page <<-MANPAGE
NAME
  exit
SYNOPSIS
  exit
DESCRIPTION
  Exit RySafe console.
FEATURES
  ...
OPTIONS
  ...
ENVIRONMENT
  ...
SEE ALSO
  ...
AUTHORS
  ...
  MANPAGE
end

It should also be possible to load commands from a file ~/.ry_safe/commands.

Tree.root

Should be @name = nil instead of @name = "/root"

Fix specs.

Create directory in root

  1. Tree.root loaded.
  2. Create a node in Tree.root with Tree.current << node.
  3. Node isn't in relative_path_to_existing_node, but in Tree.current.
  4. Change Tree.current with cd dir; cd ..
  5. node isn't in Tree.current

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.