alces-software / metalware

Tools and conventions for improving bare metal machine management
Other
2 stars 0 forks source link

Use instance_eval in the view command #430

Closed WilliamMcCumstie closed 6 years ago

WilliamMcCumstie commented 6 years ago

Base on #429

Previously a AlcesCommand helper prevented the use of eval. This was to make it a bit safer, however it was also extremely limiting and resulted in a lot of errors.

Instead, a basic instance_eval can be used to run the code. This means any ruby command can be ran on the alces object.