Updated provider.rb to merge environment attribute